Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I want to resize such an animated GIF file do.gif enter image description here

If I do convert do.gif -resize 24x24\! do-24.gif I get it resized in do-24.gif but not animated enter image description here

How to resize it right way to get the same animation?

share|improve this question

1 Answer 1

up vote 16 down vote accepted

first run:

convert do.gif -coalesce temporary.gif


convert -size <original size> temporary.gif -resize 24x24 smaller.gif
share|improve this answer
Great! It works!!! – zuba Feb 18 '13 at 18:26
-coalesce "creates a complete view of the animation at each point, a bit like a true film strip, rather than an animation sequence. Such a sequence, known as a Coalesced Animation is much easier to study, edit, modify and re-optimize." – sam Aug 12 '13 at 19:26
gifsicle --resize 24x24 > do-24.gif can to this too – sam Aug 14 '13 at 2:20
Note that the coalesced view is much larger than the optimized one (3.2 times in my test), and the resizing produces a coalesced image, which can also be larger than the original in file size (2.3 times in my test) even if the resolution is smaller. When I try resizing directly it looks fine and has a small file size, though maybe it just works for this image. – endolith Dec 27 '14 at 21:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.