Page 1 of 1

Wrong resolution for JPEG Images

Posted: 2009-07-15T05:53:09-07:00
by rmiglani
Hi all,

I am using ImageMagick to find some image attributes associated with JPEG files. The version in use currently is ver-6.4.0. The command is identify -verbose <filepath>. The problem is that for some of the images ImageMagick returns the resolution as 72x72 pixelsperinch whereas if viewed in Adobe Photoshop the resolution is different. For the images in question the EXIF data has the X Resolution and Y Resolution as 72 but the Image resolution is not the same as 72. I have tried the latest version (6.5.4-2) as well with no luck.

Is there a bug somewhere in ImageMagick? Where exactly is the resolution read from by identify?

Re: Wrong resolution for JPEG Images

Posted: 2009-07-17T03:45:47-07:00
by anthony
Oh hum...

Photoshop stored its resolution in a non-standard photoshop specific profile meta-data.

That is it does not make it available to other programs in the conventional way.

Re: Wrong resolution for JPEG Images

Posted: 2009-07-17T05:57:49-07:00
by rmiglani
Hi Anthony,

Thanks for your response.

The thing is that if I open the image in some other image editing software like XnView, there also I do not get the resolution as 72.

Here is a link to the picture in question, if you could have a look at it..

http://img194.imageshack.us/img194/5425 ... aisse2.jpg