# Gifsicle

> Command-line tool for creating, editing, and optimizing GIF images and animations, with companion gifview and gifdiff programs.

Stars: 4.4k · Language: C · License: GPL-2.0 · Categories: File Management

- Repository: https://github.com/kohler/gifsicle
- Website: http://www.lcdf.org/gifsicle/
- Page: https://www.trmn.sh/tools/gifsicle

## Overview

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

- [rsync](https://www.trmn.sh/tools/rsync.md): File copying and synchronization tool for local and remote paths, with delta transfers for remote updates and SSH or rsync-daemon connections. (C, 5.4k stars)
- [ImageMagick](https://www.trmn.sh/tools/imagemagick.md): Open-source C software suite with a command-line interface and APIs for creating, editing, converting, and composing bitmap images in 200+ formats. (C, 17.9k stars)
- [nnn](https://www.trmn.sh/tools/nnn.md): Terminal file manager with disk usage analysis, batch operations, and extensive plugin ecosystem (C, 22.1k stars)
- [s5cmd](https://www.trmn.sh/tools/s5cmd.md): Command-line tool for S3 and local filesystem operations, running transfers in parallel with wildcard support and batch command files. (Go, 4.2k stars)
- [trash-cli](https://www.trmn.sh/tools/andreafrancia-trash-cli.md): Command-line interface to the freedesktop.org trashcan: trash, list, restore, and empty files using the same trash as KDE, GNOME, and XFCE. (Python, 4.6k stars)

---

Canonical: https://www.trmn.sh/tools/gifsicle
