Identify.exe reports incorrect DPI

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Ruvan
Posts: 9
Joined: 2010-03-30T00:28:07-07:00
Authentication code: 8675308

Identify.exe reports incorrect DPI

Post by Ruvan »

Hi all

I'm experiencing several images where ImageMagick identify reports incorrect DPI.

For this particular incident, ImageMagick reports 44 DPI with command: "identify -format %x [file]"

Windows explorer and Photoshop report 300dpi.

The image can be found here: http://www.fernando.dk/tgdpi44Issue.jpg

Thanks for your help.

Ruvan
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: Identify.exe reports incorrect DPI

Post by el_supremo »

Paint Shop Pro X3 also reports 44dpi but Windows Explorer does indeed claim 300dpi.

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
Ruvan
Posts: 9
Joined: 2010-03-30T00:28:07-07:00
Authentication code: 8675308

Re: Identify.exe reports incorrect DPI

Post by Ruvan »

Oh dear, forgot to mention something about versions (forgive me)
Win7, 64bit pro.
ImageMagick-6.6.0-Q16 (64bit)
/Ruvan
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Identify.exe reports incorrect DPI

Post by magick »

We've run a number of open source packages against the image and they all report 44DPI.
Ruvan
Posts: 9
Joined: 2010-03-30T00:28:07-07:00
Authentication code: 8675308

Re: Identify.exe reports incorrect DPI

Post by Ruvan »

magick wrote:We've run a number of open source packages against the image and they all report 44DPI.
I'm not sure how to interpret this statement.

The following two lines of .NET code (which I provide with no restrictions, or limitations) ;-) :

Code: Select all

Image newImage = Image.FromFile(@"c:\temp\tgdpi44Issue.jpg");
MessageBox.Show("DPI: " + newImage.HorizontalResolution);
Report "DPI: 300" when run.

Simply stating that ImageMagick and other open source packages report 44dpi really isn't that helpful.

Since we are talking about DPI, we are talking printing and the printing industry pretty much regards InDesign as the defacto tool for printing, and that tool reports 300 dpi if placed in a document.

So, the question is, what is the correct answer?

Thanks,
Ruvan
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Identify.exe reports incorrect DPI

Post by fmw42 »

I will add my two cents. I am on a Mac. I opened your image in Preview, Debabelizer or Pixelmator and it reports 44 dpi. But if I open it in GraphicsConverter, it reports 300dpi.

Is it possible that it contains an imbedded thumbnail and on or the other of the image and thumbnail are at 44dpi and 300dpi respectively?
Ruvan
Posts: 9
Joined: 2010-03-30T00:28:07-07:00
Authentication code: 8675308

Re: Identify.exe reports incorrect DPI

Post by Ruvan »

fmw42 wrote:Is it possible that it contains an imbedded thumbnail and on or the other of the image and thumbnail are at 44dpi and 300dpi respectively?
Seems likely, and I have addressed your question to the image originator and will revert back. The image is used in our DAM and the image was rejected by the DPI requirement, which inspired me to post the issue here.

Thanks for testing on other platforms.
Post Reply