/gifquant

simple cli tool for converting images to gifs, allowing for reducing/changing the color palette of the output gif.

Primary LanguageRust

gifquant

simple cli tool for converting images to gifs, allowing for reducing/changing the color palette of the output gif.

just needed a quick and better way to convert my asesprite animations to gifs, so i made this.

palettes need to be in the gpl format.

all art in the images folder are my own.

Options

  • -c, --colors <colors>: number of colors to use in the output gif (default: 256)
  • -p, --palette <palette>: path to a gpl file to use as the color palette
  • -o, --output <output>: path to the output gif file
  • -h, --help: display help for command
  • -d, --delay <delay>: delay between frames in the output gif (default: 100(ms))
  • -l, --loop <loop>: number of times to loop the output gif (default: 0 (infinite))
  • -i, --interlaced: whether or not to use interlacing in the output gif (default: false)
  • -s, --speed <speed>: quantization speed (1-30) (default: 1)

Examples

use max (256) colors

gifquant images -o full.gif

use 8 colors

gifquant images -c 8 -o c8.gif

use 16 colors

gifquant images -c 16 -o c16.gif

use 32 colors

gifquant images -c 32 -o c32.gif

use external color palette

gifquant images -p palettes/aap-64.gpl -o aap-64.gif

Installation

git clone https://github.com/nathanielfernandes/gifquant.git
cd gifquant
cargo install --path .