Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Better SVG support #156

Closed
brian-kephart opened this issue Mar 26, 2018 · 3 comments
Closed

[Enhancement] Better SVG support #156

brian-kephart opened this issue Mar 26, 2018 · 3 comments

Comments

@brian-kephart
Copy link
Contributor

First, thanks a lot for this tool, it's made my life easier.

Currently the only tool in the mix for optimizing SVGs is SVGO. Instructions for this library require a global NPM installation which is difficult in some environments (Heroku, in my case). I haven't yet been able to make this tool work without installing it globally.

It seems like there should be another tool for SVGs (maybe this?), or alternate instructions for installing SVGO non-globally.

@toy
Copy link
Owner

toy commented Mar 28, 2018

I'm glad that it is helpful :)

About svgo – I saw a great idea in ImageOptim.app to pack svgo into a single shell script and bundle the result.

About svgcleaner – looks interesting, plus there is a comparison with scour which can also be an alternative.

@brian-kephart
Copy link
Contributor Author

Thanks for the response. I'm not really concerned about having multiple tools, though I suppose it wouldn't hurt. One tool is fine if I can install it in my production environment. The alternative tool suggestion was just in case SVGO couldn't be made to work.

Is this the SVGO bundle you were referring to?

@brian-kephart
Copy link
Contributor Author

After some experiments, I found that:

  1. The other utilities I tried didn’t reduce file size as much as SVGO.
  2. Using SVGO non-globally was really easy once I figured it out.

I’ll submit a PR updating the README with alternate instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants