[Pkg-gmagick-im-team] Bug#990301: /usr/bin/identify-im6.q16: identify not following requested format for some gifs

Johannes Schauer Marin Rodrigues josch at debian.org
Wed Sep 1 13:34:11 BST 2021


On Fri, 25 Jun 2021 14:37:37 +1000 Brian May <bam at debian.org> wrote:
> $ identify -format "%w:%h" file.gif
> 480:270480:270480:270480:270
> 
> I only requested the values once, but it gave them to me 4 times. Which
> makes it kind of difficult to parse.
> 
> This only happens for this image file, but no idea what makes it
> special. Looks like an ordinary gif file to me:
> 
> $ file file.gif
> file.gif: GIF image data, version 89a, 480 x 270
> 
> $ ls -l file.gif
> -rw------- 1 brian brian 140074 Jun 25 14:27 file.gif
> 
> I have attached the file to this report. At least I hope I did :-)
> 
> This is what I would expect to see:
> 
> $ identify -format "%w:%h"  /usr/share/tcltk/tk8.6/images/pwrdLogo150.gif
> 97:150

your gif has four frames, so you get the width and height four times.

Maybe you only want to select the first frame? Try:

$ identify -format "%w:%h" 'file.gif[0]'
480:270

Thanks!

cheers, josch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-gmagick-im-team/attachments/20210901/3e2317e2/attachment.sig>


More information about the Pkg-gmagick-im-team mailing list