Thanks for your help. The option -colors255 works but I am not sure what -colors255 is intended to do, whether it forces paletted output or whether it simply reduces the number of colors
I need paletted output for saving memory and it should be the same behaviour for png, tif and others.
I also ...
Search found 2 matches
- 2017-07-22T08:24:05-07:00
- Forum: Bugs
- Topic: Option -type palette results in output error with some pngs
- Replies: 2
- Views: 7633
- 2017-07-06T04:14:05-07:00
- Forum: Bugs
- Topic: Option -type palette results in output error with some pngs
- Replies: 2
- Views: 7633
Option -type palette results in output error with some pngs
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 ...
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 ...