-ordered-dither in magickwand?

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
vilords

-ordered-dither in magickwand?

Post by vilords »

How to use -ordered-dither in magickwand?

Is there an alternative, or a way to get similar results?
http://www.cit.gu.edu.au/~anthony/graph ... /quantize/

Thanks
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

We'll need to add a method to the MagickWand API for ordered dither. For now, you must call the MagickCore method OrderedPosterizeImageChannel() directly to perform ordered dithering.
vilords

Post by vilords »

hmm, how to call that....thru exec?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

ImageMagick 6.3.1-7 Beta has the new MagickOrderedPosterizeImage() method. It will be available tommorrow. To use MagickCore within MagickWand, simple extract the image with GetImageFromMagickWand(), operate on it with MagickWand, then put in back in a wand container with NewMagickWandFromImage().
vilords

Post by vilords »

great, I'll try that tomorrow then....

could you please let me know how to do masks with magicwand? Is that possible?

1. I'll open a pic
2. create let's say rectangle with rounded edges which will be the mask for the pic

I see it's pretty easy to do via command line when using -matte....but couldn't figure it out how to do that via magicwand.
Post Reply