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




I use it every time I'm using SVG for the web.

My only problem is that when pasting SVG directly from Illustrator it finds an invalid character at the end and refuses to use it. I have to paste the SVG into an editor, remove some invisible character at the end, and then paste to svgomg.

I reported this and offered to PR but never got an answer: https://github.com/jakearchibald/svgomg/issues/145


My protocol for dealing with no-PR's has been (especially in this case where you can just host the tool on github.io)

1. Just fork it and use your own version until the PR is accepted

2. Directly email the maintainer if you think your PR is worthwhile

3. If you have a bunch of PR's that are pretty useful to others, consider making it a real distributable (and not just a personal) fork if the maintainer still doesn't respond


Is it legal to have a NUL byte in an SVG? Might want to also contact Illustrator as well if it's not.


I doubt it, but I also doubt Adobe would pay attention...


It might be disallowed by XML already.


Why ask, just write the PR and see if they'll take it.


I've done that in the past and some PRs are still there collecting dust.


Their loss. On the flip side, if anyone ever comes back or takes over the project, they'll have PR's ready to go.


Hardly a day goes by that I don't use svgomg. If you need a one-off SVG minified, this is the tool for you.


I used this tool just the other day; very comprehensive, and very fantastic.




Applications are open for YC Winter 2020

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

Search: