4 ms·
I was intrigued to see how the demo GIF in the README was generated: https://github.com/tamnd/kage/blob/01e75b87ecc893bbba7943c630610112b211964d/docs/static/dem
by simonw 5mo ago
I was intrigued to see how the demo GIF in the README was generated: https://github.com/tamnd/kage/blob/01e75b87ecc893bbba7943c630610112b211964d/docs/static/demo.gif https://github.com/tamnd/kage/blob/01e75b87ecc893bbba7943c63...
Turns out it's using another project by the same author: https://github.com/tamnd/ascii-gif https://github.com/tamnd/ascii-gif
The script used for the demo is at https://github.com/tamnd/kage/blob/01e75b87ecc893bbba7943c630610112b211964d/docs/demo/kage.tape https://github.com/tamnd/kage/blob/01e75b87ecc893bbba7943c63... and has a comment showing how to run it:
ascii-gif render docs/demo/kage.tape -o docs/static/demo.gif
Looks like it's an opinionated wrapper around https://github.com/charmbracelet/vhs https://github.com/charmbracelet/vhs
- alterom 5mo agoFYI, on other platforms (Windows/MacOS), LiceCAP is a fantastic tool to record screen into compact GIFs by the author of Winamp and Reaper DAW: https://www.cockos.com/licecap/ https://www.cockos.com/licecap/
- jubilanti 5mo agoHave you heard the good news about the terminal savior asciinema -- https://asciinema.org/ https://asciinema.org/
- embedding-shape 5mo agoIt's a cool tool/platform, but very different. Asciinema tries to make the "multimedia" itself better by making it actual text instead of being video/images, while the CLI command above turns actual text into multimedia supported by platforms already. Both are useful, both have their use cases :)
- stavros 5mo agoVHS is fantastic for scripting cli video generation.
- vqtska 5mo agoYou can also do an animated svg which is way smaller than a gif because it's just text keyframes (https://github.com/vytskalt/pseudoc/blob/main/assets/factorial.svg https://github.com/vytskalt/pseudoc/blob/main/assets/factori...)
- embedding-shape 5mo agoVery cool, never thought of that! "way smaller" is almost an understatement, when it's 50kb :P Neat that it loads in GitHub READMEs as well, which is probably a large reason people use .gif today.
- Noumenon72 5mo agoHow can you do it? I don't see an SVG output from ascii-gif.
- tamnd 5mo agoI have a bunch of opinionated/personal-use binaries like this in my $HOME/bin/, like delete-all-npm, clean-rust-cache, download-youtube-playlist, and get-markdown <url>. It feels good, and I don't need to remember any commands. Sometimes my coding agent can figure out how to call some of those tools too ;))
- stellamariesays 5mo ago[flagged]