-
-
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
[Bug] Arc path too compressed for Illustrator/Affinity #1137
Comments
Just disable Example configYML: plugins:
- convertPathData:
noSpaceAfterFlags: false JSON: {
"plugins": [
{
"convertPathData": {
"noSpaceAfterFlags": false
}
}
]
} |
I think this option should be disabled by default. After updating svgо to 1.3.0, several projects in production were broken. 😞 |
It works, as @grig0ry I think |
It's a totally standard syntax from a 8-years old specification (and was introduced in a working draft a year before). If some software has a problems with it—those should be addressed to that software. |
Thank you! I was having this issue where I was outputting SVG that would render fine but if I took it to SVGOMG it wouldn't be able to recognize the code. For instance: Original:
Optimized without no space after flags set to false
Would turn into:
Fix for me:
|
Just a heads up for anyone coming from #1138 - you may also have to use the
|
You can add librsvg to the list of software that chokes on this optimisation. If this option is going to remain enabled by default, could there at least be a warning about the incompatibility somewhere? It's not easy to track down exactly what's going wrong at the moment. |
- Related: svg/svgo#1137 - Related: svg/svgo#1149
This also breaks the default linux svg renderer which impacts all image viewers, gimp, and the file system image previews. I agree with everyone else that this should not be enabled by default because it breaks svg output in many different applications. A default setting does not make sense if the majority of users need to override them and shipping an svg that is broken for our users in many contexts is not acceptable for my company. |
Affinity Designer has fixed this bug on 1.8.4 |
Using the (default) option to rewrite the path on svg@1.3.0 an arc is wrote as:
a.65.65 0 011.109-.459
This is properly displayed on Chrome and Firefox but some editors (I've tryed Adobe Illustrator CC 2019 and Affinity Designer 1.7) are not able to recognize the
large-arc-flag
parameter.011.109
are 3 values:Illustrator and Affinity are not enough smart to understand that.
How should be:
a.65.65 0 0 1 1.109-.459
(there are 2 more spaces)Attached a full example:
example.zip
The text was updated successfully, but these errors were encountered: