Skip to content

dgzlopes/asciicast-to-gif-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asciicast to GIF action

This action generates GIF animations from asciicast files using asciicast2gif

Inputs

input

Required Input JSON path or url.

output

Required Output GIF path.

theme

Color theme. Default "asciinema".

available: asciinema, tango, solarized-dark, solarized-light, monokai.

speed

Animation speed. Default "1".

scale

Image scale / pixel density. Default "2".

Example usage

Example of generating GIF from asciicast URL, with default options:

❗ You need to add .cast (or .json) ext to the URL.

- name: Asciicast URL to GIF
  uses: dgzlopes/[email protected]
  with:
    input: https://asciinema.org/a/234965.json
    output: demo.gif

Example of generating GIF from local asciicast file, with Tango theme, double speed and single pixel density:

- name: Asciicast file to GIF
  uses: dgzlopes/[email protected]
  with:
    input: 118274.json
    output: demo.gif
    theme: tango
    speed: 2
    scale: 1