Feather / halo effect
Posted: 2007-08-15T09:48:00-07:00
Here is what I can do and what I want:
http://www.uploadhouse.com/viewfile.php?id=362485
Here is the code I'm using.
Need help and suggestions for the expected result.
Thanks.
http://www.uploadhouse.com/viewfile.php?id=362485
Here is the code I'm using.
Code: Select all
<?php
$sourceWand = NewMagickWand();
$compositeWand = NewMagickWand();
$back = NewMagickWand();
MagickReadImage( $compositeWand, 'test2.png' );
MagickReadImage( $sourceWand, 'castlecut.jpg' );
MagickReadImage( $back, 'back.jpg' );
MagickCompositeImage($sourceWand, $compositeWand, MW_SrcAtopCompositeOp,0,0);
MagickPaintTransparentImage($sourceWand, NewPixelWand( 'black' ));
MagickCompositeImage($back, $sourceWand, MW_SrcAtopCompositeOp,0,0);
header( 'Content-Type: image/gif' );
MagickEchoImageBlob( $back );
MagickWriteImage( $back, 'new_image2.jpg' );
?>
Thanks.