matte equivalent in PHP MagickWand
Posted: 2007-11-05T20:06:57-07:00
I am attempting to do this example with PHP MagickWand:
The example has the header: Image to Background Difference
http://www.imagemagick.org/Usage/channels/#mask_bgnd
I am able to create a mask, but when I try to translate the following nothing happens:
convert cyclops.png boolean_mask.png \
+matte -compose CopyOpacity -composite \
cyclops_boolean.png
PHP:
$image is the "cyclops.png"
MagickCompositeImage($image, $mask, MW_CopyOpacityCompositeOp,0,0);
I tried reading a previous post, it was solved, but the solution was not posted
viewtopic.php?f=10&t=8153&p=24978&hilit ... and#p24978
I think I am having problems because I haven't set the matte, but I don't know how to do this in PHP. Any help or discussion is greatly appreciated.
-apeman
The example has the header: Image to Background Difference
http://www.imagemagick.org/Usage/channels/#mask_bgnd
I am able to create a mask, but when I try to translate the following nothing happens:
convert cyclops.png boolean_mask.png \
+matte -compose CopyOpacity -composite \
cyclops_boolean.png
PHP:
$image is the "cyclops.png"
MagickCompositeImage($image, $mask, MW_CopyOpacityCompositeOp,0,0);
I tried reading a previous post, it was solved, but the solution was not posted
viewtopic.php?f=10&t=8153&p=24978&hilit ... and#p24978
I think I am having problems because I haven't set the matte, but I don't know how to do this in PHP. Any help or discussion is greatly appreciated.
-apeman