Resizing animated GIFs with ImageMagick

After an intense search on the web with no really satisfying result, I
finally found a way to resize animated gifs with ImageMagick. The
problem was, the image looked weird if just resized via

convert -size 200x100 big.gif -resize 200x10 small.gif

What I had to do is to coalesce the image prior to resizing. This
fills all frames and converts the animated gif in a movie-like
condition, wich allows easily to process it

convert big.gif -coalesce coalesce.gif

then

convert -size 200x100 coalesce.gif -resize 200x10 small.gif

Voila!_This_is_for_all_you_folks_out_there_looking_for_a_way_to_resize
animated_gifs!

more very helpful information on
http://www.cit.gu.edu.au/~anthony/graphics/imagick6/

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Jun 27, 2007

    Anonymous says:

    Thank you so much. It works fine :)

    Thank you so much. It works fine

  2. Oct 17, 2007

    Anonymous says:

    thanks :)

    thanks

  3. Jan 12, 2008

    Anonymous says:

    Thanks dude. Worx like a charm.

    Thanks dude. Worx like a charm.

  4. Feb 05, 2008

    Anonymous says:

    This works ok too convert sourcefile coalesce resize XXxYY deconstruct destfile

    This works ok too

    convert sourcefile -coalesce -resize XXxYY -deconstruct destfile

  5. Mar 04, 2008

    Anonymous says:

    You are a gentleman and a scholar! Thanks!

    You are a gentleman and a scholar! Thanks!

  6. Aug 04

    Anonymous says:

    Thank you. It works very well. :)

    Thank you. It works very well.

Add Comment

These projects are supported by Liip AG