Subject: | Incorrect width and height for JPG files |
Image-Info version 1.16
Perl v5.8.6
Darwin Kernel Version 8.2.0
With some JPG files Image-Info is returning the width and height from dim() as either undefined or some large positive integer. For example with the following origonal size images from Flickr. The first (x,y) is the values reported from Image-Info, the second (x,y) is reported by Image-Size.
49959260.jpg (52451464,52454320) (1024,1024)
49959297.jpg (52454284,52455328) (1024,1024)
49959327.jpg (31876424,52455196) (1024,1024)
49959359.jpg (52451080,52451908) (1024,1024)
49959413.jpg (31949328,31990964) (1024,1024)
49959462.jpg (31991264,52455364) (1024,1024)
49959504.jpg (52455136,52449484) (1024,1024)
49959550.jpg (52453816,52453996) (1024,1024)
49959621.jpg (52454920,31990844) (1024,1024)
49959668.jpg (52453504,52450252) (1024,1024)
49959702.jpg (52452424,68114812) (1024,1024)
I have checked the image files themselves and they do seem to be the dimensions reported by Image-Size. There appears to be (almost) no rhyme or reason to the values returned by Image-Info.
As this only affects less than 1% of all the files I have tested (1,236 out of 153,151) this would seem to be no great deal.