Skip to content

Generate animated GIFs from asciinema terminal recordings

Notifications You must be signed in to change notification settings

jbenet/asciinema2gif

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

asciinema2gif

Generate animated GIFs from asciinema terminal recordings.

Demo

Motivation

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.

Usage

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

Requirements

OS X

brew install imagemagick gifsicle npm
npm install phantomjs2

Ubuntu

apt-get install imagemagick gifsicle npm
npm install phantomjs2

License

Public domain.


Enjoy, tav <tav@espians.com>

About

Generate animated GIFs from asciinema terminal recordings

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 87.7%
  • Shell 12.3%