Skip to content

gvalkov/gifblender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

gifblender

gifblender blends the frames of animated gifs or other image sequences.

Usage

Usage: gifblender [options] <img.gif>|<img1> <img2> ...

Options:
  -h, --help               show this help message and exit
  -o, --outdir <arg>       output directory
  -s, --steps <arg>        number of steps
  -t, --transition <arg>   transition timing
  -b, --blend-last         blend first and last frames

Available transition timings:
  linear (default)
  ease
  ease-in
  ease-out
  ease-in-out
# for looping gifs, the -b|--blend-last option lets you blend the last
# and first frames (this creates a seemlessly looping gif)
$ gifblender -o /tmp/frames/ -s 20 -t ease -b source.gif

# you can also blend arbitrary image sequences if they have the same
# dimensions
$ gifblender -o /tmp/frames/ -s 20 img1.jpg img2.jpg img3.jpg *.jpg

Example output

Note: gifblender only creates intermediary frames - it does not create gifs. Use a program like gifsicle to animate gifblender's results.

Transition

The -t|--transition option specifies the rate at which the transition between two frames is carried out:

ease ease-in ease-out

ease-in-out linear source

Requirements

gifblender requires the ImageMagick suite.

# Debian compatible OS
$ apt-get install imagemagick

# Redhat compatible OS
$ yum install ImageMagick

# Mac OS with macports
$ port install ImageMagick

# FreeBSD
$ pkg install ImageMagick # or ImageMagick-nox11

License

gifblender is released under the terms of the New BSD License.