HI,
   I met a strange problem. When I use ImageMagick to load image and
resize it.
I write a script, and it really does work. But during debug, I found
that system variable $! contains a error message "no such file or
directory", how to explain it? I am sure the image path is right, other
wise I can not get the resized image.
So according the error message, which directory is not exist? And is
there any way to get the details of "$!". The script as blew, and very
easy.

#!/usr/local/perl/bin/perl

use Image::Magick;

my $model=Image::Magick->new();

my $result = $model->ReadImage('/root/001.jpg');

print $!; 
# here got error message. But I am sure the path "/root/001.jpg" is
exist

die $result if $result ;

$model->Transform(geometry=>"105");

$model->Write("/root/002.jpg");

if( $! ){ print $!;$status = "resize_err" }

print $status ;

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to