Hacker News new | past | comments | ask | show | jobs | submit login

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/

SVG tested:

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/




Ah 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.


You can also take a look at this: https://svgr.now.sh/ It converts SVG to both react and react-native.




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

Search: