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
Switch off SVGO Absolute for SVG / JS distribution Repos / Packages #5554
Comments
We already run SVGO on all of the icon data. Can you give some examples of path data you're seeing reduced? Make sure you're running it with 2 decimals of precision. If you have it set to round all decimals it will cause issues in some icons. |
Definitely see the difference. SVGO is configured to use absolute path data in all scenarios. This was a requirement in our legacy system to build the webfont, but we can switch it off for the SVG / JS repos after extensive testing. Renaming your issue to point this out. |
@OlivierLDff I've tagged this for the 6.0 milestone. Not too much effort on our part, but requires extensive testing to ensure we don't cause any icon regressions. One of the underlying libraries 7 years ago had glitchy results with relative path data. Definitely not an issue with the latest |
@Templarian We need to verify this as we approach v6 release. |
Wasn't sure where to put that or who to contact.
I'm embedding into my app all icons as svgs for easy and fast developement.
I discovered a tool call
svgo
that optimize svg by removing meta data.I created a github repo that mirror Templarian/MaterialDesign with optimized svg. https://github.com/OlivierLDff/MaterialDesignSvgo.
Binary size of the icon collection is reduced by half.
I want to share this repo, as it might be useful to people doing like me.
The text was updated successfully, but these errors were encountered: