Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dgzlopes/asciicast-to-gif-action
Converts asciicast files to animated GIF files.
https://github.com/dgzlopes/asciicast-to-gif-action
actions asciicast gif terminal-recording
Last synced: about 1 month ago
JSON representation
Converts asciicast files to animated GIF files.
- Host: GitHub
- URL: https://github.com/dgzlopes/asciicast-to-gif-action
- Owner: dgzlopes
- License: mit
- Created: 2020-03-05T15:43:41.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-05T16:40:51.000Z (almost 5 years ago)
- Last Synced: 2024-12-09T19:56:58.953Z (about 2 months ago)
- Topics: actions, asciicast, gif, terminal-recording
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Asciicast to GIF action
This action generates GIF animations from [asciicast](https://github.com/asciinema/asciinema/tree/master/doc) files using [asciicast2gif](https://github.com/asciinema/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:> :heavy_exclamation_mark: You need to add .cast (or .json) ext to the URL.
```yaml
- 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:
```yaml
- name: Asciicast file to GIF
uses: dgzlopes/[email protected]
with:
input: 118274.json
output: demo.gif
theme: tango
speed: 2
scale: 1
```