in reply to Error Handling
You can find your other attributes here on the PerlMagick page.use Image::Magick; my $photo = Image::Magick->new(); my $x = $photo->ReadImage($input); if ($x) { warn $x; # This will catch any bad files or serious errors in reading the ima +ge } my ($height, $width) = $photo->Get('height','width');
|
---|