Create, manipulate, and optimize GIF images and animations
open sourceGPL-2.0-onlyself-hostablefree
Gifsicle is a command-line tool for creating, editing and inspecting GIF images and animations, written in C. It merges several GIFs into an animation, explodes an animation into its frames, and replaces, deletes or inserts individual frames, and it controls delays, disposal, looping, interlacing, transparency and comments, flips and rotates, resizes and changes colormaps, including shrinking them or switching to the web-safe palette. Its optimizer stores only the changed part of each frame and can shrink animations to within a few bytes of commercial optimizers, a lossy mode trades quality for size, and it can unoptimize an animation for easier editing. A batch mode changes GIFs in place. Two companion programs come with it: gifview, an animated-GIF viewer for X11, and gifdiff, which checks whether two GIFs look identical.
Problems it solves
- my animated GIF is 20 MB and needs to be small enough to post
- combine a folder of frames into a looping animated GIF from the command line
- pull the first frame out of an animated GIF
- change the frame delay or make a GIF loop forever
- resize hundreds of GIFs in a script without losing the animation
- reduce the number of colors in a GIF to make it smaller
- check whether two GIF files look exactly the same in a test
Features
- merge GIFs into animations and explode animations into frames
- replace, delete or insert frames
- delays, disposal, looping, interlacing, transparency and comments
- flip, rotate and resize
- colormap reduction and web-safe palette
- animation optimizer that stores only changed pixels
- lossy compression mode
- unoptimize for editing
- batch mode for in-place changes
- detailed GIF information
View 2 more
- gifview animated-GIF viewer for X11
- gifdiff visual comparison
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what Gifsicle does.
- gifski Highest-quality GIF encoder, built on pngquant
- ImageMagick The open-source suite for image creation, conversion, and batch manipulation
