3 ms·
Awesome work! I ran the 4 shape example through SVGOMG and lowered the precision slider down until it didn't affect the perceived output. The result was about
by sbr464 7y ago
Awesome work!
I ran the 4 shape example through SVGOMG and lowered the precision slider down until it didn't affect the perceived output.
The result was about 40% of the original size.
https://jakearchibald.github.io/svgomg/ https://jakearchibald.github.io/svgomg/
SVG tested:
https://camo.githubusercontent.com/ffa6eed9348fcd42454fc3916f7662bc0f9808a6/68747470733a2f2f70726964656f75742e6e65742f626c6f672f7376675f776972656672616d65732f66696c6d73747269702e737667 https://camo.githubusercontent.com/ffa6eed9348fcd42454fc3916...
Side note -- if using React, svg2jsx is great for converting the SVG properties to React JSX names.
https://svg2jsx.herokuapp.com/ https://svg2jsx.herokuapp.com/
- news_hacker 7y agoAh I've been looking for something like svg2jsx for a while... thanks for sharing! It was one of those moments where I knew someone out there MUST'VE made a tool for it, but it was a discoverability problem.
- itsyogesh 7y agoYou can also take a look at this: https://svgr.now.sh/ https://svgr.now.sh/ It converts SVG to both react and react-native.