You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Might be interesting to see if it would be possible to use SVGO https://github.com/svg/svgo to compress paths even more. Or at least in a more controlled way than I have been doing it.
The text was updated successfully, but these errors were encountered:
@spatialillusions I just played with svgo to optimize a set of 28 selected symbols with varying complexity.
With default svgo options, the reduction in (file) size lies between 14% and 48% with an average of 30%.
That's way more than I expected. Downside is that symbol creation time roughly doubles.
It would be interesting to know how the optimization affects rendering performance.
The generated symbols might not be the most efficient SVGs because of how the symbols are generated, and that all paths are specified with a limited function set to be able to output them both to SVG and Canvas. So looking at optimizing them at the end of the code might just be a waste of time.
However, if things are found in assvg.js or in any of the symbolfunctions that might optimize the output that would be really good.
My idea was to use SVGO to go over all defined paths in iconparts and see if they can be optimized to reduce the size of the library. So if anyone can automate that, or do tie manually and submit a pull, it would be much appreciated.
Might be interesting to see if it would be possible to use SVGO https://github.com/svg/svgo to compress paths even more. Or at least in a more controlled way than I have been doing it.
The text was updated successfully, but these errors were encountered: