From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 Description of problem: ImageMagick does not return the correct values for image dimensions. More information follows: Redhat 7.3 ImageMagick-perl-5.4.3.11-1, ImageMagick-5.4.3.11-1, ImageMagick-devel-5.4.3.11-1, ImageMagick-c++-devel-5.4.3.11-1, ImageMagick-c++-5.4.3.11-1 First with ImageMagick: ---------- #!/usr/bin/perl use Image::Magick; $imageName = "/tmp/001.jpg"; my $preview = new Image::Magick; ($width, $height, $size, $format) = $preview->Ping($imageName); print "width: $width\nheight: $height\n"; ---------- width: 191 height: 154 Now with Image::Info: ---------- #!/usr/bin/perl use Image::Info qw(image_info dim); $imageName = "/tmp/001.jpg"; my $info = image_info($imageName); my($w, $h) = dim($info); print "width: $w\nheight: $h\n"; ---------- width: 1523 height: 1228 Image::Info has the correct values. Seems ImageMagick's Ping routine has a problem. When I installed the source (from ImageMagick's wesite), everything worked fine. Version-Release number of selected component (if applicable): 5.4.3.11-1 How reproducible: Always Steps to Reproduce: 1. Install Red Hat's ImageMagick 5.4.3.11-1 RPMs 2. Install Image::Info 1.11 from CPAN 3. Run the above perl code on an image of known dimensions Actual Results: ImageMagick always came back with odd (very small) numbers compared to other routines that collects image dimensions. Expected Results: Expected results? Um, the correct information would be nice. Additional info:
Since this bugzilla report was filed, there have been several major updates to ImageMagick, which may resolve this issue. If you still see this problem with a current version of ImageMagick, please file a new bug. Setting status to "WONTFIX".