image_optim
image_optim copied to clipboard
svgo --precision
I love this gem, how am I just discovering it?!? Especially appreciate the separate pack gem. Great stuff. Thanks for all your hard work creating and maintaining.
When I compress SVGs I always use -p1, which has a tremendous impact on file size. SVG tools always export with tons of extra sigfigs, which svgo can easily remove. Using one of my recent SVG files:
original - 4.5k after svgo - 3.3k after svgo -p1 - 2.1k
I've used the precision flag for years on hundreds of SVGs, never noticed a visual difference. It's technically lossy, though.
Can we add support for this? Either --svgo-allow-lossy or --svgo-precision? Happy to try a PR if that would be helpful.