3 ms·
Following up on this, I was inspired to try again. I decided to give APNG tools a shot, as it seems that APNG support is pretty good these days[1]. It was strai
by slavik81 7y ago
Following up on this, I was inspired to try again. I decided to give APNG tools a shot, as it seems that APNG support is pretty good these days[1]. It was straightforward to build apngasm[2] and ttygif[3] from their GitHub sources on Ubuntu. I modified ttygif to generate a command for apngasm rather than for convert, and found that it could easily handle my data.
Unfortunately, apngasm does not seem to handle gamma correctly, resulting in more muted colours in the output APNG than in the input PNGs. If I can find the time, I'll fix that up and open-source the various tweaks I made. My current results are[4][5], though I may update those images as I improve them.
On a related note, it seems that it's no longer possible to remove the window decorations from gnome-terminal on Ubuntu 19.10, which is unfortunate for ttygif captures. I switched to my Ubuntu 18.04 machine to do a capture without the window border.
[1]: https://caniuse.com/#feat=apng https://caniuse.com/#feat=apng
[2]: https://github.com/apngasm/apngasm https://github.com/apngasm/apngasm
[3]: https://github.com/icholy/ttygif https://github.com/icholy/ttygif
[4]: https://slerp.xyz/demos/ascii-euler/block.png https://slerp.xyz/demos/ascii-euler/block.png
[5]: https://slerp.xyz/demos/ascii-euler/waterfall.png https://slerp.xyz/demos/ascii-euler/waterfall.png
- deleted 7y ago[deleted]
- slavik81 7y agoOne final update, I think part of the colour problem was actually because the Ubuntu terminal is slightly transparent by default, and different alpha blending resulted in slightly different colours.