MagickWand returning garbage
Posted: 2008-08-15T09:25:25-07:00
I tried my first MagickWant script:
and got this. Can someone tell me what I'm doing wrong. Thanks.
Code: Select all
$resource = NewMagickWand();
if (isset($resource)) {
echo "ImageMagick is on";
MagickReadImage( $resource, 'allia.jpg' );
MagickResizeImage( $resource, 100, 100, MW_QuadraticFilter, 1.0 );
header( 'Content-Type: image/gif' );
MagickEchoImageBlob( $resource );
}
else echo "no imagemagick";