Code: Select all
lt-convert: Cannot write PNG8 or color-type 3; colormap is NULL `SirNathanMouse_the_abduction_dc2.png' @ error/png.c/WriteOnePNGImage/9262.
Code: Select all
convert 'the_abduction_dc.png' -resize '920x1840>' -quality 100 -strip +profile '*' -define png:exclude-chunk=gama PNG00:'SirNathanMouse_the_abduction_dc2.png'
The issue occurred with both --with-quantum-depth=16 and --with-quantum-depth=8
The issue does not occur if I remove the "PNG00:" at the start (it creates a 32-bit file)
It also does not occur if I use "PNG8:" (it creates an 8-bit file with 153-color palette, including a background color).
Debug output:
Code: Select all
Domain: Coder; rights=Write; pattern="PNG00" ...
Enter WritePNGImage()
Format=(null)
png00 inherited bit depth=8
png00 inherited color type=3
png:exclude-chunk=gama found in image options.
png:exclude-chunk=gama found in image artifacts.
Chunks to be excluded from the output png:
gAMA
Enter WriteOnePNGImage()
IM version = 6.9.1-3
Libpng version = 1.2.49
Zlib version = 1.2.7
image->storage_class=DirectClass
image_info->magick= PNG00
image->taint=MagickTrue
Freeing bogus colormap
Enter BUILD_PALETTE:
image->columns=920
image->rows=1199
image->matte=0
image->depth=8
image->colors=256
Regenerate the colormap
Check colormap for background (65535,65535,65535)
No room in the colormap to add background color
image has more than 256 colors
image->colors=256
number_transparent = 0
number_opaque > 256
number_semitransparent = 0
At least one pixel or the background is non-gray
Exit BUILD_PALETTE: