Many GIFs suddenly come to a jarring halt at the end of the animation. buttery provides tools for smoothing out transitions, creating infinite animation reels.
| Before | After |
|---|---|
![]() |
![]() |
buttery homer.gif
buttery provides command line flags to manipulate GIFs.
The Mirror stitch smoothes out animations by copying frames in reverse. This is the default mode.
As well, the GIF loop count flag is set to infinite.
buttery -stitch Mirror homer.gif
The classic fade-to-black (or orange!) transition. Dream-like.
-fadeColor <#RRGGBB> customizes the transition color.
-fadeRate <float> customizes the transition rate.
| Before | After |
|---|---|
![]() |
![]() |
buttery -stitch Fade -fadeColor "#CC5500" red-panda.gif
Reflecting frames around a horizontal or vertical axis, starting at the animation halfway point in time, is another great way to smooth out transitions.
| Before | After |
|---|---|
![]() |
![]() |
buttery -transparent -stitch FlipH cinnamoroll.gif
buttery -transparent -stitch FlipV cinnamoroll.gif
Move the camera sideways, wrapping around.
-panVelocity <float> customizes the pixel pan rate.
buttery -stitch PanH red-panda.gif
buttery -stitch PanV red-panda.gif
Rearrange frames at random, for a chaotic visual flow.
buttery -stitch Shuffle homer.gif
Disable transition stitches.
buttery -stitch None homer.gif
Manipulate frame order.
Set how many times to play the animation.
| Loop Count | Animation Plays |
|---|---|
| 0 | ∞ |
| N | N + 1 |
| -1 | 1 |
buttery -stitch None -loopCount 0 homer.gif
Drop n frames from the start of the animation.
Drop m frames from the end of the animation.
buttery -trimStart 3 -trimEnd 3 red-panda.gif
Drop n frames from both the start and the end of the animation.
buttery -trimEdges 3 red-panda.gif
Truncate frames beyond the nth.
buttery -window 16 red-panda.gif
Rotate sequence n frames left.
Negative values shift n frames right.
buttery -stitch None -shift 10 homer.gif
buttery -stitch None -shift -10 homer.gif
Drop every nth frame of a GIF.
buttery -cutInterval 2 homer.gif
Multiply each frame delay by a factor (default 1).
buttery -scaleDelay 2.0 homer.gif
Preserve alpha channel.
buttery -transparent cinnamoroll.gif
buttery includes metadata query operations.
Validate a GIF for basic file integrity.
buttery -check homer.gif
Get the number of frames in a GIF.
buttery -getFrames homer.gif
Print version identifier.
buttery -version
Print usage menu.
buttery -help