Ensure 16-bit+alpha input images work with vips_premultiply #301

Improves SVG support as *magick serves these as 16-bit

Add automated tests for SVG and 16-bit+alpha PNG inputs
This commit is contained in:
Lovell Fuller
2015-11-21 20:21:34 +00:00
parent c9ecc7a517
commit 05dd191e17
7 changed files with 46 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 840 B

BIN
test/fixtures/expected/svg.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

1
test/fixtures/index.js vendored Executable file → Normal file
View File

@@ -71,6 +71,7 @@ module.exports = {
inputPngWithTransparency: getPath('blackbug.png'), // public domain
inputPngWithGreyAlpha: getPath('grey-8bit-alpha.png'),
inputPngWithOneColor: getPath('2x2_fdcce6.png'),
inputPngWithTransparency16bit: getPath('tbgn2c16.png'), // http://www.schaik.com/pngsuite/tbgn2c16.png
inputPngOverlayLayer0: getPath('alpha-layer-0-background.png'),
inputPngOverlayLayer1: getPath('alpha-layer-1-fill.png'),
inputPngOverlayLayer2: getPath('alpha-layer-2-ink.png'),

BIN
test/fixtures/tbgn2c16.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB