From 8d8c6b70eba2ef97a679efaa410c6de11b30869c Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Tue, 24 Jan 2023 15:44:39 +0000 Subject: [PATCH] Prefer integer (un)premultiply for faster RGBA resize Add changelog, loosen modulate test thresholds --- docs/changelog.md | 2 ++ test/unit/modulate.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index b30ac106..4dc07547 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -16,6 +16,8 @@ Requires libvips v8.14.0 * 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. [#2767](https://github.com/lovell/sharp/issues/2767) diff --git a/test/unit/modulate.js b/test/unit/modulate.js index a5d2e804..e6ce41f9 100644 --- a/test/unit/modulate.js +++ b/test/unit/modulate.js @@ -175,7 +175,7 @@ describe('Modulate', function () { .png({ compressionLevel: 0 }) .toFile(actual) .then(() => { - fixtures.assertMaxColourDistance(actual, expected); + fixtures.assertMaxColourDistance(actual, expected, 3); }); }); });