Animated GIF

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
double
Posts: 14
Joined: 2009-10-25T10:12:06-07:00
Authentication code: 8675309

Animated GIF

Post by double »

Hello,

Is there a chance to optimize an animated GIF, which background moves constantly.
Example:
http://doppelbauer.name/animation.gif

It contains 64 times:
animation.gif[0] GIF 4096x64 4096x64+0+0 8-bit PseudoClass 128c 870KB 0.000u 0:00.000

Thanks a lot
Markus
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Animated GIF

Post by fmw42 »

I am not an expert on animations, but see http://www.imagemagick.org/Usage/anim_opt/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Animated GIF

Post by anthony »

GIF optimization does not handle movements. As such in your example the frames will almost always be full sized.
However as only the edge pixels need to be updated, you can use a 'Transparency Optimization' to good effect.

That is while you still generally need a full frame for each and every animation frame, you can make almost every pixel in that frame transparent, and thus allow the images to compress very well.

See Transparency Optimization
http://www.imagemagick.org/Usage/anim_opt/#opt_trans
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply