Dave Lo
05-13-2003, 05:25 PM
I'm trying to use Perl with Image::Magick without success. This is the test script:
#!/usr/bin/perl
use Image::Magick;
print "Content-type: text/html\n\n<pre>";
print "Image Magick version: ", ${'Image::Magick::VERSION'}, "\n";
$filename = "test.jpg";
$image = Image::Magick->new;
$msg = $image->Read($filename);
print "Image Read status: $msg\n";
And this is the resulting error message
Image Magick version: 5.55
Image Read status: Exception 420: No decode delegate for this image format (test.jpg)
Does this mean the installation of Image::Magick on the server is bad, or are there environment variables that need to be set?
#!/usr/bin/perl
use Image::Magick;
print "Content-type: text/html\n\n<pre>";
print "Image Magick version: ", ${'Image::Magick::VERSION'}, "\n";
$filename = "test.jpg";
$image = Image::Magick->new;
$msg = $image->Read($filename);
print "Image Read status: $msg\n";
And this is the resulting error message
Image Magick version: 5.55
Image Read status: Exception 420: No decode delegate for this image format (test.jpg)
Does this mean the installation of Image::Magick on the server is bad, or are there environment variables that need to be set?