Gifsicle: Command-Line Animated GIFs

submited by
Style Pass
2024-11-24 16:00:18

Prebuilt binaries Debian Linux package (maintained by Gürkan Sengün) FreeBSD port (maintained by Sylvio Amorim) NetBSD package (maintained by Ben Wong) Mac OS X HomeBrew port MacPorts package (may be out of date) DOS port (maintained by Robert Riebisch) Windows ports (maintained by Jernej Simončič)

Gifsicle is a command-line tool for creating, editing, and getting information about GIF images and animations. Making a GIF animation with gifsicle is easy: gifsicle --delay=10 --loop *.gif > anim.gif Extracting frames from animations is easy too: gifsicle anim.gif '#0' > firstframe.gif You can also edit animations by replacing, deleting, or inserting frames: gifsicle -b anim.gif --replace '#0' new.gif

Some more gifsicle features: Batch mode for changing GIFs in place. Prints detailed information about GIFs, including comments. Control over interlacing, comments, looping, transparency... Creates well-behaved GIFs: removes redundant colors, only uses local color tables if it absolutely has to (local color tables waste space and can cause viewing artifacts), etc. It can shrink colormaps and change images to use the Web-safe palette (or any colormap you choose). Optimize your animations! This stores only the changed portion of each frame, and can radically shrink your GIFs. You can also use transparency to make them even smaller. Gifsicle’s optimizer is pretty powerful, and usually reduces animations to within a couple bytes of the best commercial optimizers. Unoptimizing animations, which makes them easier to edit. A dumb name.

Leave a Comment