Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
deanclatworthy
· 11y ago · 0 comments
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?
Comments
[–]
bshimmin
11y ago
It 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/pathform...
[–]
bshimmin
11y ago
Quick and dirty, but this does the trick I think:
https://gist.github.com/benshimmin/4bd6bb9cb8733a6acba7
[–]
premasagar
11y ago
Yes, SVGO is really good at this and other kinds of SVG optimisation and manipulation:
https://github.com/svg/svgo/