Page 1 of 1

converting animated gif to a static gif

Posted: 2007-07-17T16:50:01-07:00
by avothecat
I'm simply using the convert utility (in php, I don't think that changes anything) to resize large images to smaller ones (previews, thumbnails, etc)
I searched google a lot, and looked through the docs on the official site, but didn't find what I need...

Is there a method to only convert the first frame of a gif?

I don't know, "convert huge_image_animated.gif -resize !300x300> preview_static.gif -static" , or something.

Re: converting animated gif to a static gif

Posted: 2007-07-17T17:22:40-07:00
by el_supremo
This should do it:

Code: Select all

convert huge_image_animated.gif[0] -resize "!300x300>" preview_static.gif

Pete

Re: converting animated gif to a static gif

Posted: 2007-07-18T12:48:10-07:00
by avothecat
Thanks, that worked perfect :)