Page 1 of 1

Resize GIF and keep only the first frame

Posted: 2015-10-17T11:37:16-07:00
by ViPeR_930
Hi,
I need to batch resize a lot of animated GIFs and remove the animation. I would like to keep only the first frame. What can I add to mogrify to remove the animation this way?

Thank you

Re: Resize GIF and keep only the first frame

Posted: 2015-10-17T11:59:35-07:00
by fmw42
I do not know if this will work or not, but try

Code: Select all

mogrify .... *[0]
or if you have a specific suffix

Code: Select all

mogrify .... *.suffix[0]
or

Code: Select all

mogrify .... -delete [1--1] *.suffix
see http://www.imagemagick.org/Usage/basics/#delete

Re: Resize GIF and keep only the first frame

Posted: 2015-10-17T16:55:13-07:00
by ViPeR_930
Thanks. Adding *.gif[0] worked.