Prefer integer (un)premultiply for faster RGBA resize

Add changelog, loosen modulate test thresholds
This commit is contained in:
Lovell Fuller 2023-01-24 15:44:39 +00:00
parent 9e2207f376
commit 8d8c6b70eb
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,8 @@ Requires libvips v8.14.0
* Add `formatMagick` property to metadata of images loaded via *magick. * Add `formatMagick` property to metadata of images loaded via *magick.
* Prefer integer (un)premultiply for faster resizing of RGBA images.
* Allow use of GPS (IFD3) EXIF metadata. * Allow use of GPS (IFD3) EXIF metadata.
[#2767](https://github.com/lovell/sharp/issues/2767) [#2767](https://github.com/lovell/sharp/issues/2767)

View File

@ -175,7 +175,7 @@ describe('Modulate', function () {
.png({ compressionLevel: 0 }) .png({ compressionLevel: 0 })
.toFile(actual) .toFile(actual)
.then(() => { .then(() => {
fixtures.assertMaxColourDistance(actual, expected); fixtures.assertMaxColourDistance(actual, expected, 3);
}); });
}); });
}); });