Why all those steps?
chomp (my $id = `identify $image_file`); my ($x, $y) = ($id =~ m/\s([0-9]+)x([0-9]+)\s/);
And yes, I also use Image::Size when available.
In reply to Re: Answer: How can I get image height and width without using Image::Size?
by Tux
in thread How can I get image height and width without using Image::Size?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |