Wrong resolution for JPEG Images

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
rmiglani

Wrong resolution for JPEG Images

Post 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?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Wrong resolution for JPEG Images

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
rmiglani

Re: Wrong resolution for JPEG Images

Post 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
Post Reply