Specifying -colors?

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
pwnedd
Posts: 35
Joined: 2008-09-03T13:03:57-07:00

Specifying -colors?

Post by pwnedd »

Is it possible to specify the number of colors to use during conversion?

e.g.

Code: Select all

convert -colors 256 original.png new.png
I looked through the documents, but the closest I could find was "quantizeImage," which requires a bunch of extra parameters.

Any ideas?

Thanks,
Post Reply