Option -type palette results in output error with some pngs
Posted: 2017-07-06T04:14:05-07:00
Hello,
I have installed ImageMagick-7.0.6-0-Q8-x64-dll.exe in Windows 7
With 24 bit RGB images as input I get
C:\test>montage -type palette -geometry +0+0 bad.png out.png
montage: image has 0 colors `out.png' @ error/png.c/MagickPNGErrorHandler/1666.
C:\test>convert -type palette bad.png out.png
convert: Valid palette required for paletted images `out.png' @ error/png.c/MagickPNGErrorHandler/1666.
With good.png everthing is fine. out.png is an 8-bit paletted image. Both images are generated in the same way. I can't see any fundamental difference. So whats wrong here?
Since I didn't find any option to attach the image, I have uploaded example.zip them here:
https://1fichier.com/?1qk9uz1pyb
I have installed ImageMagick-7.0.6-0-Q8-x64-dll.exe in Windows 7
With 24 bit RGB images as input I get
C:\test>montage -type palette -geometry +0+0 bad.png out.png
montage: image has 0 colors `out.png' @ error/png.c/MagickPNGErrorHandler/1666.
C:\test>convert -type palette bad.png out.png
convert: Valid palette required for paletted images `out.png' @ error/png.c/MagickPNGErrorHandler/1666.
With good.png everthing is fine. out.png is an 8-bit paletted image. Both images are generated in the same way. I can't see any fundamental difference. So whats wrong here?
Since I didn't find any option to attach the image, I have uploaded example.zip them here:
https://1fichier.com/?1qk9uz1pyb