skip to content
Alvin Lucillo

Creating GIF out of a cast

/ 1 min read

If you already have a cast file generated from asciinema, you can generate a GIF out of it with agg.

First, download the prebuilt binary, allow it to run as an executable, and move it to the dir below to make it available anywhere in the system.

curl -sLo agg https://github.com/asciinema/agg/releases/download/v1.9.0/agg-aarch64-unknown-linux-gnu

chmod +x agg

sudo mv agg /usr/local/bin/agg  

agg --help
asciinema gif generator

Usage: agg [OPTIONS] <INPUT_FILENAME_OR_URL> <OUTPUT_FILENAME>

Generate the GIF

agg demo.cast demo.gif
101 / 101 [============================================================================================================================================================================================================================] 100.00 % 35.56/s