Hi, 
  I found that why the method always return "resize_err", but I am not
clear the reason.
  That is 
     if( $! ){ $status = "resize_err" }

I don't how to explain this command, $! Is a image oject, after the
write method, what is it? And also the same script under windows
platform, it is work fine. 
Any one can help me? Thanks!

The method as below:
sub image_resize_width {
        my ($status) = "resize_ok";
        my $i = Image::Magick->new;
        my($result)= $i->Read($file);
        $i = $i->Transform(geometry=>$width);
        $result = $i->Write($file);
        
       if( $! ){ $status = "resize_err" }
        
        return $status ;
}



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

Reply via email to