On Fri, 25 Jun 2021 14:37:37 +1000 Brian May <b...@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
signature.asc
Description: signature