Page 1 of 1

Identifying JPEGs give wrong results

Posted: 2007-10-12T02:43:30-07:00
by rwedrich
Hi,

we use ImageMagick for identifying image metadata like size, resolution etc. in a database publishing system (by using identify -verbose). We have noticed that since some versions, IM gives the wrong resolution for jpegs saved by Photoshop CS2 (result is always 72 ppi). Photoshop, TheGimp or IrfanView give the correct resolution, so I presume that it is IM's fault.

Here are some examples:
http://www.lobster.de/testimages.zip

The correct resolution is indicated in the image's title.

Thanks for having a look (and, if possible, a quick solution...)

Rainer

Re: Identifying JPEGs give wrong results

Posted: 2007-10-12T07:25:45-07:00
by magick
ImageMagick is picking up two EXIF resolution tags instead of one so for the 96 DPI case it picks up 96 then 72. We will have a fix for this problem in ImageMagick 6.3.6-2 Beta sometime tomorrow.

Re: Identifying JPEGs give wrong results

Posted: 2007-11-14T04:39:49-07:00
by rwedrich
Thanks, it works fine with JPEGs and TIFF now. However, I just found found that the same Problem exists with PSD and EPS files.

Here are some test files, the Photoshop resolution ist given in the filename. Identify returns 72x72 in each case and no value for "units":

http://www.lobster.de/test_images.zip

Hopy you'll be able to fix this, too...

Re: Identifying JPEGs give wrong results

Posted: 2007-11-14T06:10:26-07:00
by mi
This sounds important... Could you, please, publish a patch against 6.3.6-9? Thanks!

Re: Identifying JPEGs give wrong results

Posted: 2007-11-14T10:12:56-07:00
by magick
Your images have an embedded XMP profile which is not properly being separated from its 8BIM wrapper. We will fix this problem but we currently do not have an ETA given that our list of things-to-do currently has several hundred items