LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

agg

Convert terminal recordings to animated GIFs

TLDR

Convert asciinema recording to GIF
$ agg [recording.cast] [output.gif]
copy
Set font size
$ agg --font-size [20] [recording.cast] [output.gif]
copy
Set playback speed
$ agg --speed [2] [recording.cast] [output.gif]
copy
Use custom theme
$ agg --theme [monokai] [recording.cast] [output.gif]
copy
Set output dimensions
$ agg --cols [80] --rows [24] [recording.cast] [output.gif]
copy

SYNOPSIS

agg [options] input.cast output.gif

DESCRIPTION

agg (asciinema gif generator) converts asciinema terminal recordings to animated GIF files. It renders terminal sessions including colors, cursor, and all formatting into a high-quality GIF suitable for documentation or sharing.The tool is written in Rust and provides options for customizing output appearance including themes, fonts, dimensions, and playback speed.

PARAMETERS

--font-size size

Font size in pixels (default: 16).
--font-family name
Comma-separated list of font families to use.
--font-dir dir
Additional directory to scan for fonts.
--line-height factor
Line height as a multiple of the font size (default: 1.4).
--speed factor
Playback speed multiplier (default: 1).
--theme name
Color theme (asciinema, dracula, github-dark, github-light, gruvbox-dark, kanagawa, monokai, nord, solarized-dark, solarized-light). Default: dracula.
--cols n
Override terminal width in columns (default: from the recording).
--rows n
Override terminal height in rows (default: from the recording).
--fps-cap n
Maximum frames per second (default: 30).
--renderer type
Rendering backend: swash (default) or resvg.
--idle-time-limit seconds
Limit idle time between frames to this many seconds (default: 5).
--no-loop
Disable looping; play the animation only once.
--last-frame-duration seconds
How long to hold the last frame (default: 3).

INSTALL

yay -S agg
copy
brew install agg
copy
nix profile install nixpkgs#agg
copy

CAVEATS

Large or long recordings produce large GIF files. Consider adjusting speed or idle-time-limit to reduce file size. Font rendering quality depends on available system fonts.

HISTORY

agg was created as a Rust-based alternative to other asciinema-to-GIF tools, providing better performance and rendering quality. It's maintained as part of the asciinema ecosystem.

SEE ALSO

asciinema(1), ffmpeg(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid