Forrest logo
tool overview
On this page you find all important commands for the CLI tool gifsicle. If the command you are looking for is missing please ask our AI.

gifsicle

Gifsicle is a command line tool that allows you to manipulate and optimize GIF images. It provides a variety of features and options to control the animation, size, and quality of GIF files. Here are some key aspects of gifsicle:

  1. GIF manipulation: Gifsicle lets you create, edit, and optimize GIFs. It can combine multiple GIFs into one, split a GIF into separate frames, and extract specific frames from a GIF.

  2. Optimization: This tool provides various optimization techniques to reduce the file size of GIFs. It can remove unnecessary metadata, reduce the color palette, apply lossy or lossless compression, and minimize code size to create efficient and smaller GIF files.

  3. Animation control: Gifsicle allows you to adjust various aspects of the GIF animation. You can change the duration of frames, set delays between frames, loop the animation a specific number of times or infinitely, and even reverse the animation.

  4. Frame editing: You can modify individual frames within a GIF using gifsicle. This includes resizing, cropping, rotating, flipping, and adjusting transparency or disposal method for each frame.

  5. Batch processing: Gifsicle supports batch processing, enabling you to apply the same set of operations to multiple GIF files simultaneously. This can be useful for resizing, optimization, or adding common effects to an entire folder of GIFs.

  6. Command line interface: Gifsicle is primarily used through the command line interface, allowing you to script and automate the manipulation of GIFs. It supports various command line options and provides a flexible and powerful workflow for working with GIFs.

Overall, gifsicle is a versatile and powerful command line tool that provides extensive functionality for manipulating, optimizing, and editing GIF images.

List of commands for gifsicle:

  • gifsicle:tldr:2658e gifsicle: Unoptimize a GIF in place.
    $ gifsicle -b ${path-to-input-gif} --unoptimize
    try on your machine
    explain this command
  • gifsicle:tldr:4f9c2 gifsicle: Optimize a GIF as a new file.
    $ gifsicle ${path-to-input-gif} --optimize=3 -o ${path-to-output-gif}
    try on your machine
    explain this command
  • gifsicle:tldr:a0a10 gifsicle: Modify all frames of a GIF using specific transformation options.
    $ gifsicle -b --crop ${50},${50}+${-50}x${-50} --scale ${0-25} --flip-horizontal --rotate-90 ${path-to-input-gif}
    try on your machine
    explain this command
  • gifsicle:tldr:b41a7 gifsicle: Delete the first 10 frames and all frames after frame 20 from a GIF.
    $ gifsicle -b ${path-to-input-gif} --delete '#${0-9}' '#${20-}'
    try on your machine
    explain this command
  • gifsicle:tldr:c4a1c gifsicle: Make a GIF animation from selected GIFs.
    $ gifsicle ${*-gif} --delay=${10} --loop > ${path-to-output-gif}
    try on your machine
    explain this command
  • gifsicle:tldr:cd033 gifsicle: Extract a frame from a GIF.
    $ gifsicle ${path-to-input-gif} '#${0}' > ${path-to-firstframe-gif}
    try on your machine
    explain this command
  • gifsicle:tldr:f3f94 gifsicle: Reduce file size using lossy compression.
    $ gifsicle -b ${path-to-input-gif} --optimize=3 --lossy=${100} --colors=${16} --dither
    try on your machine
    explain this command
tool overview