Closed vanniktech closed 5 years ago
I ran into a condition where I had some <rect />'s with a transform that included translate and rotation. I found in the VectorDrawable docs that some transforms exists in the group tag. It might be worth fixing up svg2android for these.
Gentle bump on this.
@yuraj11 is this project still being maintained? Otherwise I'd use the tools from the android folks instead.
What tools does Google have?
It is not deprecated but also not active because I do not have that much free time to fix all the issues. SVG format is too complex and some bug fixes could introduce another bugs. Have you tried the official Android Studio svg import dialog https://developer.android.com/studio/write/vector-asset-studio.html ?
That's also the one I meant with Google tools.
As this tool is deprecated and behind the official AS solution in term of conversion - you can check https://developer.android.com/studio/write/vector-asset-studio#svg - I have tried converting this SVG and It renders correctly using AS Vector Asset Studio.
Input Icon
Works without
Bake transforms into path
When I convert it using those options:
The image will be transformed correctly.
Does not work with
Bake transforms into path
However when I activate
Bake transforms into path
:The image will not be transformed correctly and is not centered: