twardoch / svgop

Standalone binary executables for macOS and Windows of 'svgo', the SVG optimizer
Apache License 2.0
24 stars 3 forks source link

Add ability to specify the additional parameters #5

Open peng-qd opened 3 years ago

peng-qd commented 3 years ago

hi @twardoch ,

Thank you very much for creating such a great tool. I can see you mentioned in the doc & code that the svgop takes a predefined set of plugins to optimize the svg files. However, recently we found the svg files optimized using svgop is not displayed correctly in IE 11 (guilty for supporting ancient browser..). We thought if we could disable some plugins (like "--disable=RemoveViewBox") then the optizimized svg should be working in IE.

Could you please let me know if allowing speicify disabled plugins will be supported in next version? Cheers,

liqube commented 3 years ago

That'd be extremely useful. Primarily also to be able to trim the precision for floating point values. There's a lot of potential to actually reduce file sizes in situations where only 1 or 2 digits precision is required.

twardoch commented 1 year ago

I don't know how to do it but feel free to open a PR