Vincec's Dimension

Gifsicle - powerful tools for gif on web

Word count: 133 / Reading time: 1 min
2019/04/25 Share

Just find a very powerful gif compressor with command line.

Install

Mac

brew install gifsicle

Windows

Usage

1
2
3
gifsicle -O3 --lossy=80 -o lossy-compressed.gif input.gif

gifsicle -i anim.gif --optimize=3 -o anim-opt.gif

Resize

1
2
3
4
5
6
7
8
9
10
11
# Scaling of an image - 50%
gifsicle --scale 0.5 -i animation.gif > animation-smaller.gif

# Scale to a given width with unspecified height
gifsicle --resize-fit-width 300 -i animation.gif > animation-300px.gif

# Scale to a given height with unspecified width
gifsicle --resize-fit-height 100 -i animation.gif > animation-100px.gif

# Clip to size
gifsicle --resize 300x200 -i animation.gif > animation-clipped.gif

Reference

Author: VINCEC

Permalink: https://vince-amazing/blog/2019/04/25/gifsicle-usage/

Date: April 25th 2019, 5:03:09

Copyright license: The article usingCC licensing 4.0

CATALOG
  1. 1. Install
    1. 1.1. Mac
    2. 1.2. Windows
  2. 2. Usage
  3. 3. Resize
    1. 3.1. Reference