Gifsicle
Command-line tool for creating, editing, and optimizing GIF images and animations, with companion gifview and gifdiff programs.
Gifsicle is a command-line program for manipulating GIF files. Depending on the options given, it can merge several GIFs into an animation, explode an animation into its component frames, and change individual frames within an animation. It can also turn interlacing on and off, add transparency, set delays, disposals, and looping, add and remove comments, flip and rotate images, and change colormaps.
It can also optimize animations for space. The README credits the --lossy option to Kornel Lesiński and the adaptive tree method for GIF writing to Hans Dinsen-Hansen. Each program ships with a manpage named PROGRAMNAME.1.
Two companion programs are included. Gifview displays GIF images and animations on an X display, either as a slideshow showing one frame at a time or as a real-time animation. Gifdiff checks whether two GIF files have identical visual appearance, which the README says is mostly useful for testing GIF-manipulating software.
Gifsicle suits developers, web maintainers, and anyone scripting GIF creation or size reduction from the shell. It builds from source on UNIX with ./configure and make, and on Windows with Visual C or Borland C++ makefiles (gifview is not built on Windows). The build can omit gifview with --disable-gifview or gifdiff with --disable-gifdiff. It is licensed under GPL v2, with an alternative license available.
Alternatives & related tools
rsync
File copying and synchronization tool for local and remote paths, with delta transfers for remote updates and SSH or rsync-daemon connections.
ImageMagick
Open-source C software suite with a command-line interface and APIs for creating, editing, converting, and composing bitmap images in 200+ formats.
nnn
Terminal file manager with disk usage analysis, batch operations, and extensive plugin ecosystem
s5cmd
Command-line tool for S3 and local filesystem operations, running transfers in parallel with wildcard support and batch command files.
trash-cli
Command-line interface to the freedesktop.org trashcan: trash, list, restore, and empty files using the same trash as KDE, GNOME, and XFCE.
add a badge to your README
Maintain Gifsicle? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/gifsicle?utm_source=badge)<a href="https://www.trmn.sh/tools/gifsicle?utm_source=badge"><img src="https://www.trmn.sh/badge/gifsicle.svg" alt="Featured on trmn" height="20"></a>