TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: SVG to CSS data url converter with minimal output size

2 pointsby DitheringIdiotalmost 2 years ago
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.<p>- 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<p>If anyone spots any missing optimizations. do let me know.

no comments

no comments