-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
precission of convertTransform too low. #1021
Comments
Well, it's a balance between file size and image precision. It's ok for usual icons and web images, but one should use more precision for high-detailed images like this. If I change it for better precision, many image files size would be bigger without real need for it. In SVGO in |
@GreLI Thanks for answering: Input
Optimization -p 8 failsNow I run
optimizations with -p 2 works (after other opimizaion):But if you can run svgo with
Therefore I would like to have doublefloatpreccision-calculation, and rounding aferwards, this might solve this issue, with increasing precission, without increasing file size. (But maybe increasing processingtime.) CopyrightLicense: {{self|cc-by-sa-3.0|GFDL}} Author: https://commons.wikimedia.org/wiki/User:Addicted04 Source: https://upload.wikimedia.org/wikipedia/commons/5/50/Philippines_%28orthographic_projection%29.svg Details: https://commons.wikimedia.org/wiki/File:Philippines_(orthographic_projection).svg |
convertTransform isn't a real plugin - you need to configure it in the convertPathData settings. |
Not sure what that means, what can I change? Steps to reproduce:
and also replicated locally with svgo 3.2.0 with svgo.config.js.txt |
First problem: your config is still using an old format, from what I understand |
It seems that the background precission is too low, and the precission set is just the rounding afterwards.
In svgcleaner I need a precission of '--transforms-precision 7' or higher, but in SVGO I can increase the precission, but nothing changes (I tried everything in the range of -p 2 up to -p 10, without any visual changes).
##Original file
Bug1SVGOinput.svg.txt
##Optimizced file
Bug1SVGOoutput.svg.txt
Copyright
License: {{self|cc-by-sa-3.0|GFDL}}
Author: https://commons.wikimedia.org/wiki/User:Addicted04
Source: https://upload.wikimedia.org/wikipedia/commons/5/50/Philippines_%28orthographic_projection%29.svg
Details: https://commons.wikimedia.org/wiki/File:Philippines_(orthographic_projection).svg
The text was updated successfully, but these errors were encountered: