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
Resize GIF and keep only the first frame
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Resize GIF and keep only the first frame
I do not know if this will work or not, but try
or if you have a specific suffix
or
see http://www.imagemagick.org/Usage/basics/#delete
Code: Select all
mogrify .... *[0]
Code: Select all
mogrify .... *.suffix[0]
Code: Select all
mogrify .... -delete [1--1] *.suffix
Re: Resize GIF and keep only the first frame
Thanks. Adding *.gif[0] worked.