marionebl / svg-term-cli

Share terminal sessions via SVG and CSS
MIT License
3.48k stars 116 forks source link

Run the SVG through SVGO #6

Closed sindresorhus closed 6 years ago

sindresorhus commented 6 years ago

To reduce the size. I can do this myself too, but would be better if it was built-in as most users would not think about doing this. I think it should be done here as it's too opinionated to do it in the programmatic API in svg-term.

marionebl commented 6 years ago

Yep, let's do this!

sindresorhus commented 6 years ago

One thing I noticed when I ran it through SVGO is that the "Collapse Useless Groups" feature needs to be disabled, as it removes any animated parts.

I used SVGO through https://jakearchibald.github.io/svgomg/ with https://github.com/sindresorhus/ora/blob/master/screenshot.svg

marionebl commented 6 years ago

Thanks for the hint, I recall to have stumbled over this and had no time to investigate - that helps a lot!