Snapshot of asciinema/asciicast2gif: 1.2k★, CSS, Image Tools. Generate GIF animations from asciicasts (asciinema recordings)
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
In the end the approach it took didn't work well in many cases and it was hard to optimize further. Therefore I won't be putting any more work into it.
See its successor instead: https://github.com/asciinema/agg
asciicast2gif
asciicast2gif is a tool for generating GIF animations from
asciicast files
recorded by asciinema.
How it works
Here's how the asciicast->GIF conversion is implemented.
asciicast2gif shell script parses command line arguments and executes Node.js script
(main.js). main.js loads asciicast (either from remote URL or local
filesystem), generates text representation of the screen for each frame
using asciinema-player's
virtual terminal emulator, and sends it to PhantomJS-based renderer script
(renderer.js), which saves PNG screenshots to a temporary directory. Finally,
main.js calls ImageMagick's convert on these PNG images to construct GIF
animation, also piping it to gifsicle to get the final, optimized GIF file.
Note, asciicast2gif doesn't capture screenshots at a fixed frame-rate (e.g. 30 FPS)
like alternative tools. Instead, it generates PNG files for
each screen update, and specifies delay for every image individually (convert -delay <delay-a> 0.png -delay <delay-b> 1.png -delay <delay-c> 2.png ...). When
the screen is idle there're no screenshots generated. This saves disk space and
makes it less work for both convert and gifsicle, while resulting in smaller
GIF file.
Installation
You can install asciicast2gif with npm, use it via Docker image, or build it
from source.
npm package
To install asciicast2gif using npm run:
npm install --global asciicast2gif
Following runtime dependencies need to be also installed:
ImageMagick
giflossy (or gifsicle)
Docker image
You can use asciicast2gif through official asciicast2gif Docker
image (automated build on
Docker Hub from this repository).
Pull the image:
docker pull asciinema/asciicast2gif
Use it like this:
docker run --rm -v $PWD:/data asciinema/asciicast2gif [options and arguments...]
You need to mount some local directory at /data so input and output files can
be accessed by the container. Mounting current working directory ($PWD) makes
most sense in majority of cases.
For example, generating GIF from local file, with double speed and Solarized
theme:
How active is development on asciinema/asciicast2gif?
The most recent commit recorded on asciinema/asciicast2gif was 4.0 years ago, based on the GitHub push timestamp. The repository has 79 forks — one of the better signals of community interest.
How many stars does asciinema/asciicast2gif have?
asciinema/asciicast2gif has 1.2k GitHub stars — refresh the page for the live number, or check github.com/asciinema/asciicast2gif. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What else is in the Image Tools space?
asciinema/asciicast2gif is tracked by TopGit under the Image Tools category, alongside 2 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What language is asciinema/asciicast2gif written in?
asciinema/asciicast2gif is written primarily in CSS. GitHub's language field is based on the largest share of bytes in the default branch.
What topics is asciinema/asciicast2gif associated with?
GitHub's repository topics for asciinema/asciicast2gif: "gif", "terminal-recording". TopGit's editorial category is Image Tools.
Where do I read more about asciinema/asciicast2gif?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/asciinema/asciicast2gif is the definitive source.
Why is asciinema/asciicast2gif categorized under Image Tools?
TopGit places asciinema/asciicast2gif in the Image Tools category based on its GitHub topics and description (tagged: "gif", "terminal-recording"). Categories are assigned from real repository metadata, not editorial guesswork.
Read full README in the tab above.
Curious whether asciicast2gif is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about asciicast2gif.