Generate animated GIFs from asciinema terminal recordings.
The asciinema
tool is a wonderful way to record and share terminal sessions.
Unfortunately, it's not currently possible to embed the output in places like
README files on GitHub repos. This tool provides a solution for that.
Simply pass in the corresponding API url for the recording, e.g.
$ ./asciinema2gif https://asciinema.org/api/asciicasts/8332
An asciicast.gif
file will then be generated for you to embed and share.
The API url supports a few customisable parameters you might want to use:
?size=
:small
,medium
,big
?theme=
:tango
,solarized-dark
,solarized-light
brew install imagemagick gifsicle npm
npm install phantomjs2
apt-get install imagemagick gifsicle npm
npm install phantomjs2
Public domain.
—
Enjoy, tav <tav@espians.com>