mlseim
07-26-2006, 01:51 AM
This is sort of unique to a particular webhost, but I'll ask anyhow.
Cleverdot.com says they have the module installed and it shows up
on cpanel. "Image::Magick"
When I try to run the script below, it fails.
Does anyone have experience with using cleverdot.com, or might know
why I might be having a problem. Of course, their tech support tells me
to use their built-in photo gallery, but I want to use my own image resize
with Perl.
I tried out my test script on "ipowerweb.com" and it works just fine.
As in my example below ... just the minimum to test it out.
Read an image, save it ... nothing else.
If I comment out: use Image::Magick the script prints "test",
otherwise, it fails "encounter server error ... etc".
#!/usr/bin/perl
use CGI qw/:standard/;
use Image::Magick;
print"Content-type: text/html\n\n";
print "test";
my($image, $x);
$image = Image::Magick->new;
$x = $image->Read('../../uploads/test.jpg');
warn "$x" if "$x";
$x = $image->Write('../../uploads/test.jpg');
warn "$x" if "$x";
Cleverdot.com says they have the module installed and it shows up
on cpanel. "Image::Magick"
When I try to run the script below, it fails.
Does anyone have experience with using cleverdot.com, or might know
why I might be having a problem. Of course, their tech support tells me
to use their built-in photo gallery, but I want to use my own image resize
with Perl.
I tried out my test script on "ipowerweb.com" and it works just fine.
As in my example below ... just the minimum to test it out.
Read an image, save it ... nothing else.
If I comment out: use Image::Magick the script prints "test",
otherwise, it fails "encounter server error ... etc".
#!/usr/bin/perl
use CGI qw/:standard/;
use Image::Magick;
print"Content-type: text/html\n\n";
print "test";
my($image, $x);
$image = Image::Magick->new;
$x = $image->Read('../../uploads/test.jpg');
warn "$x" if "$x";
$x = $image->Write('../../uploads/test.jpg');
warn "$x" if "$x";