Bug 80704

Summary: Ping Image Size Failure
Product: [Retired] Red Hat Linux Reporter: Ashley M. Kirchner <ashley>
Component: ImageMagickAssignee: Matthias Clasen <mclasen>
Status: CLOSED WONTFIX QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-09 15:55:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ashley M. Kirchner 2002-12-30 06:33:33 UTC
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:

Comment 1 Matthias Clasen 2005-09-09 15:55:29 UTC
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".