3 ms·
This looks great. I like how it normalises the shapes into paths too. But are there any tools to do this for the command line that "simplify" SVGs so your libra
by deanclatworthy 12y ago
This looks great. I like how it normalises the shapes into paths too. But are there any tools to do this for the command line that "simplify" SVGs so your library won't have to worry about this?
- bshimmin 12y agoIt seems like it wouldn't be a Herculean task to take pathformer.js and turn it into a standalone CLI utility: https://github.com/maxwellito/vivus/blob/master/src/pathformer.js https://github.com/maxwellito/vivus/blob/master/src/pathform...
- bshimmin 12y agoQuick and dirty, but this does the trick I think: https://gist.github.com/benshimmin/4bd6bb9cb8733a6acba7 https://gist.github.com/benshimmin/4bd6bb9cb8733a6acba7
- premasagar 12y agoYes, SVGO is really good at this and other kinds of SVG optimisation and manipulation: https://github.com/svg/svgo/ https://github.com/svg/svgo/