Page 1 of 1

windows and linux returns a different result when identifyin

Posted: 2007-02-12T23:51:46-07:00
by sonusdream
I tried identifying a jpg image on windows and linux

my windows IM version is V 3.6.1 while my linux IM version is a much updated one, v3.6.2

in my windows machine, i ran this code:

Code: Select all

identify -format %x myimage.jpg 
and IM says that the image is 300 dpi (the correct one)

but when i ran the same code on my linux machine, IM returned a message saying that the image is only 72 dpi (wrong)


hope you can help me with this one


regards,
sonus

Re: windows and linux returns a different result when identifyin

Posted: 2007-02-13T08:47:24-07:00
by magick
Can you post a URL to your image. We need to inspect the image before we can comment.

Re: windows and linux returns a different result when identifyin

Posted: 2007-02-13T12:30:42-07:00
by sonusdream
thanks for the reply. anyway you can download the image i'm using using the following url:

Code: Select all

http://61.28.189.67/public/1.jpg

thanks in advance,
sonus

Re: windows and linux returns a different result when identifyin

Posted: 2007-02-13T12:56:30-07:00
by magick
Your image has an EXIF profile which suggests your image is 72DPI. The 300DPI is encoded in the JFIF image file. ImageMagick uses the JFIF resolution if not EXIF profile is available, otherwise it uses the EXIF XResolution and YResolution tags.

Re: windows and linux returns a different result when identifyin

Posted: 2007-02-13T14:17:34-07:00
by sonusdream
is there a way to check the jfif profile instead of the exif profile. also i cant seem to understand why in window, IM returned 300 dpi instead of 72 dpi

thanks in advance,

sonus

Re: windows and linux returns a different result when identifyin

Posted: 2007-02-13T14:37:43-07:00
by sonusdream
maybe this problem got something to do with the library required when reading jfif profile though i'm not really sure but i'll try installing the required library

Re: windows and linux returns a different result when identifyin

Posted: 2007-02-13T16:47:11-07:00
by sonusdream
hello again!

i tried i identifying the same file on IM version 6.2.9 in linux machine and it did returned a correct resolution.

hope this helps


thanks