asciinema / a2png

Script for generating PNG preview from asciicast JSON file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

a2png

a2png is a script for generating PNG previews from asciicast JSON files.

Installation

Clone the repository:

git clone https://github.com/asciinema/a2png.git

Install leiningen & compile scripts:

TODO: describe

Install dependencies (PhantomJS):

npm install

If you want the PNG files to be optimized install pngquant.

Usage

a2png.sh <input-json-path-or-url> <output-png-path> <time> [theme] [scale]

For example:

a2png.sh https://asciinema.org/a/42383.json output.png 78
a2png.sh demo.json output.png 10.5 solarized-dark 2

License

Copyright © 2017 Marcin Kulik.

All code is licensed under MIT license. See LICENSE file for details.

About

Script for generating PNG preview from asciicast JSON file

License:MIT License


Languages

Language:CSS 73.4%Language:JavaScript 11.0%Language:Clojure 8.9%Language:HTML 5.3%Language:Shell 0.9%Language:Makefile 0.4%