For a command line tool for editing GIFs, the first results are vvo/gifify (Gifify converts video clips into optimized animated GIFs with controls over speed, size, and palette, covering GIF creation and optimization, though it is focused on video sources rather than general-purpose GIF editing), imageoptim/gifski (Gifski is a high-quality GIF encoding library that excels at converting video and PNG sequences into optimized animations with palette reduction and dithering, but it lacks support for decoding or editing existing GIFs, covering only part of the full manipulation workflow) and jnordberg/gif.js (gif.js is a browser-based JavaScript library for encoding animated GIFs and performing color quantization; it fits the need for a GIF creation tool but lacks decoding, frame editing, and advanced optimization features). imagemagick/imagemagick and aseprite/aseprite round out the shortlist. Compare the match explanations and check the project documentation against your requirements.
We curate open-source GitHub repositories matching “tools and libraries to create, edit and optimize GIFs”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.
Gifify is a tool for converting video files into optimized animated GIFs. It functions as a video to GIF converter and optimization utility that extracts specific clips from video files and burns text or subtitle overlays directly into the frames. The project differentiates itself through specialized GIF optimization, using lossy compression, color count limiting, and custom color palette generation to reduce file sizes. It also provides precise control over the output by allowing users to adjust playback speed, reverse playback direction, and resize dimensions. The software covers a broad s
Gifify converts video clips into optimized animated GIFs with controls over speed, size, and palette, covering GIF creation and optimization, though it is focused on video sources rather than general-purpose GIF editing.
Gifski is a high-quality GIF encoding engine designed to convert video files and PNG sequences into high-fidelity animations. It focuses on maintaining visual quality through the use of advanced color palettes and dithering. The engine employs cross-frame palette quantization to ensure visual consistency across animations and uses temporal dithering to simulate higher color depth. It also incorporates lossy compression to manage the resulting file size. The project is available as a C API library for embedding into native software applications and provides a WebAssembly compilation target fo
Gifski is a high-quality GIF encoding library that excels at converting video and PNG sequences into optimized animations with palette reduction and dithering, but it lacks support for decoding or editing existing GIFs, covering only part of the full manipulation workflow.
gif.js is a JavaScript GIF encoder and client-side color quantizer that generates animated GIF files directly within the web browser. It functions as an HTML5 canvas exporter and image processor, allowing for the creation of animated images from web sources without the need for a backend server. The library utilizes web workers to offload heavy image encoding tasks to background threads, which prevents the browser user interface from freezing during the generation process. This architecture enables the tool to act as a web worker image processor for dynamic image generation. The system cover
gif.js is a browser-based JavaScript library for encoding animated GIFs and performing color quantization; it fits the need for a GIF creation tool but lacks decoding, frame editing, and advanced optimization features.
ImageMagick is a comprehensive software suite for the creation, editing, composition, and conversion of digital images. It functions as both a command-line utility for batch processing and automation, and as a programming library that allows developers to integrate advanced image manipulation capabilities into external applications. The project is distinguished by its modular architecture, which supports hundreds of image formats through a pluggable coder system and external delegate libraries. It is designed for high-performance environments, utilizing memory-mapped pixel caching, stream-ori
ImageMagick is a comprehensive image manipulation suite with both a CLI and a library that fully supports GIF encoding, decoding, optimization, frame extraction, palette reduction, and dithering across all major platforms — exactly the kind of tool you are looking for.
Aseprite is a specialized graphics editor and animation suite designed for the creation of pixel-based artwork. It provides a comprehensive environment for managing multi-layered animation sequences, offering tools for frame-by-frame design, onion skinning, and real-time motion previews. The application is built to handle both indexed color palettes and full-color RGB editing, allowing users to maintain precise control over pixel data and transparency. What distinguishes Aseprite is its focus on programmable workflows and game asset production. It features a scriptable command architecture th
Aseprite is a dedicated pixel art editor and animation tool that supports GIF creation and editing with frame-by-frame control, palette reduction, and dithering, making it a strong fit for creating and editing GIF images, though its focus on pixel art means it may not cover general-purpose GIF optimization as comprehensively as a dedicated library.
This library provides a server-side utility for generating animated GIF images directly within PHP applications. It functions by synthesizing visual assets in real-time, allowing developers to combine multiple frames and dynamic data into a single binary stream that adheres to the standard animation format. The tool distinguishes itself by integrating programmatic control over HTTP headers alongside image generation. By managing cache-control and content-type headers during the server response cycle, it dictates how browsers and email clients store or refresh visual content. This capability e
This PHP library is designed for generating GIF images in real-time, covering the creation aspect of the intent, but it does not provide editing, optimization, or frame extraction capabilities.
Gifski is a native macOS desktop application and video processing utility designed to convert video files into high-quality animated GIFs. It functions as a video-to-GIF converter that allows for the adjustment of frame rates and dimensions to balance visual fidelity with file size. The tool features capabilities for animation loop generation, including the creation of bounce effects by reversing video playback. It employs palette-based color quantization and error-diffusion dithering to maintain color accuracy and reduce banding in the final output. The application integrates with macOS sys
Gifski is a macOS-native video-to-GIF converter with palette optimization and dithering, but it is not a general-purpose GIF manipulation library or CLI tool—it cannot decode, edit, or extract frames from existing GIFs and lacks cross-platform support, so it only partly meets the broader intent.
Licecap is an animated GIF capture utility designed to record desktop screen activity and export the results as portable GIF image files. It functions as a screen recorder that allows users to capture a selected area of the screen and save the recording as a short animation. The tool includes a selection overlay for defining the recording area via mouse interactions and utilizes palette-based encoding to compress captured frames into a single looped GIF file. It integrates with Windows and macOS APIs to manage screen capture permissions and window positioning. The application covers a range
Licecap is a screen-recording utility that captures desktop activity and exports it as animated GIFs, but it is a simple capture tool rather than a general-purpose GIF manipulation library, so it lacks features like editing existing GIFs, optimization, or a command-line interface.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| vvo/gifify | 6.3K | JavaScript | ISC | |
| imageoptim/gifski | 5.5K | Rust | NOASSERTION | |
| jnordberg/gif.js |
| 5K |
| JavaScript |
| MIT |
| imagemagick/imagemagick | 15.7K | C | other |
| aseprite/aseprite | 37.5K | C++ | — |
| erikvdven/php-gif | 897 | PHP | — |
| sindresorhus/gifski | 8.5K | Swift | MIT |
| justinfrankel/licecap | 5.6K | C | — |