color-type command

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
adrianj

color-type command

Post by adrianj »

What commands can I use in Imagick to replicate this:

-define png:color-type=2

Thanks,
Adrian
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: color-type command

Post by el_supremo »

I don't know how to do that in Imagick, but in C you would use:

Code: Select all

MagickSetOption(wand,"png:color-type","2");
I presume there's something vaguely similar in IMagick.

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
adrianj

Re: color-type command

Post by adrianj »

Thanks - I didn't realize that is what SetOtion was for.
Post Reply