windows and linux returns a different result when identifyin

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
sonusdream

windows and linux returns a different result when identifyin

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: windows and linux returns a different result when identifyin

Post by magick »

Can you post a URL to your image. We need to inspect the image before we can comment.
sonusdream

Re: windows and linux returns a different result when identifyin

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: windows and linux returns a different result when identifyin

Post 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.
sonusdream

Re: windows and linux returns a different result when identifyin

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

Re: windows and linux returns a different result when identifyin

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

Re: windows and linux returns a different result when identifyin

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