jmalone
11-26-2007, 04:10 PM
Hey there,
I contacted tech support for Hostmonster and was told that ImageMagick is installed on my shared server and there's nothing special I need to do to use it, so there must be something wrong with my code.
I'm starting small because I haven't used ImageMagick before. Here's my code:
<?php // test_imagemagick.php
$resource = NewMagickWand();
MagickReadImage($resource, 'image.jpg');
MagickCropImage($resource, 200, 50, 0, 0);
header('Content-Type: image/jpeg');
MagickEchoImageBlob($resource);
?>
FYI - test_imagemagick.php and image.jpg were both uploaded under the same directory.
The error:
Fatal error: Call to undefined function newmagickwand()
Any ideas or suggestion? Do I need to include a library or direct my script to ImageMagick somehow?
Thanks for any help!
I contacted tech support for Hostmonster and was told that ImageMagick is installed on my shared server and there's nothing special I need to do to use it, so there must be something wrong with my code.
I'm starting small because I haven't used ImageMagick before. Here's my code:
<?php // test_imagemagick.php
$resource = NewMagickWand();
MagickReadImage($resource, 'image.jpg');
MagickCropImage($resource, 200, 50, 0, 0);
header('Content-Type: image/jpeg');
MagickEchoImageBlob($resource);
?>
FYI - test_imagemagick.php and image.jpg were both uploaded under the same directory.
The error:
Fatal error: Call to undefined function newmagickwand()
Any ideas or suggestion? Do I need to include a library or direct my script to ImageMagick somehow?
Thanks for any help!