Skip to content

donatj/gifopt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gifopt

Go Report Card CI GoDoc

Simple Interframe Gif Optimizer

Install

From Source

go install github.com/donatj/gifopt/cmd/gifopt@latest

From Binary

see: Releases.

Usage

Usage of gifopt [options] <gif>:
  -o string
    	Where to save the optimized gif (default "<orig>.opt.gif")
  -t float
    	Max interframe color diff percent threshold (default 0.03492566239471114)

Example t value results

Base GIF

3.2mb

input

gifopt -o output.05.gif -t .05 input.gif gifopt -o output.1.gif -t .1 input.gif
2.6mb 1.7mb

gifopt -o output.5.gif -t .5 input.gif gifopt -o output2.gif -t 2 input.gif
1.1mb .5mb