Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: SVG to CSS data url converter with minimal output size (inputoutput.dev)
2 points by DitheringIdiot on June 3, 2023 | hide | past | favorite
Not exactly a mind blowing tool — but I use tools like this all the time, and none of them (as far as I can tell) have output that is as minimal as it could be. Maybe someone will find it useful.

- only encodes necessary characters - changes attribute quotes to single quotes - lowercases percent-encoding hex pairs - swaps hex colors to their shorter named equivalents - adds xlmns attribute if missing - removes useless whitespace

If anyone spots any missing optimizations. do let me know.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: