Using a Coalesce/Modify/Optimize sequence as shown above is the typical way of modifying a GIF animation. See
modify a coalesced animation. Especially with a general purpose (but still not finalised)
GIF Optimizer option "
-layers optimize"
DO NOT USE
Deconstruct It is NOT designed to optimize ALL animations. It will do basic frame optimize for simple
overlay animations like yours, but it will fail if the animation also clears pixels to transparency. Use the -layers optimize in the later IM releases (after v6.2.6-2) whcih was designed for general GIF optimization (and still improving).
The
-coalesce removes the
Compression Optimization (either transprancy optimization or LWZ optimization) that you are seeing. Turning the animation into a simple
Coalesced Animation IM however will not restore a
LWZ optimization, though it can do the simplier (and usally good enough)
transprancy optimization
However if the animation has no
Frame Optimization (and it doesn't look like it does) you can try to add a border using
-compose Copy which tell the
-border. For more details see
Border, adding space around the image.
If you had followed some of the numerious links above, you probably would have guessed that
IM Examples has a very large set of examples on GIF animations, and all its complexities. It may be a good thing to read.
Comments, Suggestions and Additions always welcome.