-
Notifications
You must be signed in to change notification settings - Fork 35
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
Issue when generating gradiant #28
Comments
In some case SVGO does not remove input
output
input
output
|
I have the same error but there is no transform involved: <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
<defs>
<linearGradient id="cloud1-a" x1="34.393%" x2="85.57%" y1="39.111%" y2="60.889%">
<stop offset="0%" stop-color="#ECF0F9"/>
<stop offset="100%" stop-color="#D9E2F2"/>
</linearGradient>
</defs>
<g fill="none" fill-rule="evenodd">
<polygon points="0 0 48 0 48 48 0 48"/>
<path fill="url(#cloud1-a)" d="M35 25a4 4 0 1 1 0 8H13a4 4 0 1 1 0-8h.07a7.002 7.002 0 0 1 13.44-1.58A5.001 5.001 0 0 1 34.584 25h.415z"/>
</g>
</svg> |
Fixed update 2.6.11. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm joining the svg as attachment.
The first issue is using s2v -i ~/Downloads/warning.svg -o warning.xml it triggers the following issue:
Error floatPrecision is not defined while converting file warning.svg
Displaying the stacktrace show:
I fixed the error by first putting 2 instead of floatPrecision, then using the floatPrecision.
In both case, the generated vectordrawable isn't usable by Android, it displays nothing.
It seems the issue comes from the path generated.
I'm joining both result and android-studio-generated xml.
Thank you for your great tool!
issue.zip
The text was updated successfully, but these errors were encountered: