how to mimic PNG8: operator?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jmaeding
Posts: 54
Joined: 2006-05-03T09:48:26-07:00

how to mimic PNG8: operator?

Post by jmaeding »

I want to quantize an image to 256 colors to get an 8 bit palleted image.
I know prefixing the output filename with PNG8: will do it, but what is that longhand?
I tried this with no luck, gives a 24 bit fill color image:
orig.png -dither FloydSteinberg -colors 256 -type Palette new8bitindexed.png

That quantizes the colors perfectly, I compared to corel PP, but does not index them.
I tried to read on the -map option, but its not clear.
any help appreciated.
James Maeding
Civil Engineer / Programmer
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: how to mimic PNG8: operator?

Post by glennrp »

Please try ImageMagick version 6.6.1 or later. It works for me.
Post Reply