mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Prevent aliasing by using dynamic values for shrink(-on-load)
This commit is contained in:
BIN
test/fixtures/expected/embed-16bit-rgba.png
vendored
BIN
test/fixtures/expected/embed-16bit-rgba.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 762 B After Width: | Height: | Size: 987 B |
BIN
test/fixtures/expected/extend-2channel.png
vendored
BIN
test/fixtures/expected/extend-2channel.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
BIN
test/fixtures/expected/gamma-0.0.jpg
vendored
BIN
test/fixtures/expected/gamma-0.0.jpg
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 359 B After Width: | Height: | Size: 614 B |
@@ -1335,7 +1335,7 @@ describe('Input/output', function () {
|
||||
assert.strictEqual(256, info.width);
|
||||
assert.strictEqual(192, info.height);
|
||||
assert.strictEqual(4, info.channels);
|
||||
fixtures.assertSimilar(fixtures.inputPngOverlayLayer1, data, done);
|
||||
fixtures.assertSimilar(fixtures.inputPngOverlayLayer1, data, { threshold: 7 }, done);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user