Page 1 of 1

identify: missing 'resolution' for GIFs

Posted: 2014-03-23T06:19:51-07:00
by Carter J
Hi,

"identify -verbose" on GIF's not displaying Resolution of Image

Imagemagick version:
Version: ImageMagick 6.8.8-9 Q16 x64 2014-03-16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP

Operating System:
Windows 7

Image URL:
http://imgur.com/Ow9puVA

Any Insight?

Re: identify: missing 'resolution' for GIFs

Posted: 2014-03-23T06:31:34-07:00
by dlemstra
Are you talking about the DPI of the gif or about the size of the image? A gif image does not have a DPI.

Missing 'resolution' for GIFs and how to change Res of GIF f

Posted: 2014-03-24T00:41:33-07:00
by Carter J
Hi,

We are trying to convert JPEG (and other format) files to GIF and resolution change is not working as expected.

Command tried:
convert -resample 216 InputJPG.jpg GifResolution.gif


Link for inputJPG.jpg:
https://www.dropbox.com/s/fz1rzzucgcwn1n9/InputJPG.jpg

And we are able to see "Resolution" entry on issuing "identify -verbose" for some files only.

For below file we are able to see the Resolution
https://www.dropbox.com/s/c6xlmajjotf04 ... lution.gif

For below file we are unable to see the Resolution entry:
http://imgur.com/Ow9puVA

What's make the difference for above two GIF files?

How to change the resolution of GIF Files?

Re: identify: missing 'resolution' for GIFs

Posted: 2014-03-24T05:13:46-07:00
by dlemstra
The DPI is read from the 8bim profile. The Koala image does not contain an 8bim profile.

We recently added a feature that will update the profile if it contains DPI information. It will not add a new 8bim profile, it will only modify the value. With the following command you can change the DPI of GifResolution.gif

Code: Select all

convert GifResolution.gif -density 72 GifResolution.72.gif

Re: identify: missing 'resolution' for GIFs

Posted: 2014-04-01T00:23:19-07:00
by Carter J
dlemstra wrote:The DPI is read from the 8bim profile. The Koala image does not contain an 8bim profile.

We recently added a feature that will update the profile if it contains DPI information. It will not add a new 8bim profile, it will only modify the value. With the following command you can change the DPI of GifResolution.gif

Code: Select all

convert GifResolution.gif -density 72 GifResolution.72.gif
Hi,

I tried below command

convert GifResolution.gif -density 150 GifResolution.150.gif

On identify verbose the resolution showing as 150 correctly, but when we try to read the resolution of image using some other tool or when opened the image in Photoshop the resolution still showing as 72.

Identify -verbose GifResolution.150.gif

Format: GIF (CompuServe graphics interchange format)
Mime type: image/gif
Class: PseudoClass
Geometry: 2700x4050+0+0
Resolution: 150x150
Print size: 18x27
Units: PixelsPerInch
Type: Palette
Endianess: Undefined
Colorspace: sRGB

Any help?