Page 1 of 1

Shortening GIF animations

Posted: 2008-07-25T08:28:28-07:00
by jounihat
Hello Everyone!

I'm making thumbnails of documents to my web site ( http://weeb2.net ) using ImageMagick to convert them from PDF to gif animations. However, if a document is hundreds of pages long, the size of the preview can be almost as big as the file itself (even bigger sometimes). So, I would like to limit the length of the preview to maybe 20 first pages.

How is it possible to determine the length of a gif animation or shorten an already made gif animation?

By the way, thanks really much for this program! It's already serving my web site fabulously.


With Best Regards
Jouni

Re: Shortening GIF animations

Posted: 2008-07-25T10:25:26-07:00
by fmw42
you can select frames of a gif animation using frame indices

convert animation.gif[0-10] new_animation.gif

see Anthony's documentation about animations and basic usage, etc at http://www.imagemagick.org/Usage/

Re: Shortening GIF animations

Posted: 2008-07-25T11:10:11-07:00
by jounihat
Thank you very much! I tried to find it from the manual for long time, but for some reason I didn't see it.