Closed henningBunk closed 6 years ago
Are you using VectorDrawableCompat
by any chance? I believe there is a bug that wasn't fixed until API 24 that is related to SVG arc commands... and if you use VectorDrawableCompat
this bug should be fixed automatically. So I'm guessing if you use VectorDrawableCompat
(which is probably recommended anyway, even if you aren't targeting pre-Lollipop devices), this bug should be fixed.
Once you confirm that, I think one possible fix on my end is to automatically approximate arcs as one or more bezier curves... which should avoid the problem.
Hey and thanks for the answer!
No I am not using VectorDrawableCompat
. I will test it tomorrow and let you know if it makes a difference.
It should fix the issue, I think. VectorDrawableCompat fixes a lot of bugs that were present in API 21-23. I think it is still something avdo should try to fix though.
On Jan 10, 2018 8:34 AM, "Henning B" notifications@github.com wrote:
Hey and thanks for the answer! No I am not using VectorDrawableCompat. I will test it tomorrow and let you know if it makes a difference.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alexjlockwood/avdo/issues/24#issuecomment-356658108, or mute the thread https://github.com/notifications/unsubscribe-auth/ABURi1e1zkhOIhvlKB0XbIYv5aHxAHJWks5tJOaHgaJpZM4RZC-g .
I just released v0.1.5
which fixes this issue. Try it out and let me know. You can update by running
npm install -g avdo
BTW, I fixed this by making sure that avdo
did not attempt to convert C
commands into A
commands. However, I also opened #25 which would convert all A
commands into C
commands in hopes of avoiding this issue entirely.
Awesome! Thanks for the quick fix ans explanation. Using the AppCompat fixed the problem. Updating avdo did so as well.
Hi! I optimized most of my vector drawables with this tool but had to revert it. On most devices it worked flawlessly but on one device some drawables aren't rendered correctly anymore after converting. It only happens for me on a Nexus 5 running Android 6.0.1 and a Note 3 running 5.0.
Here are two Screenshots before and after running avdo:
I am guessing that the reason for it lies in the change from absolut to relative coordinates. Some other files are only rendered correctly if they aren't scaled. When the are scaled down they change similar to the example above. Maybe the
Here are the xml files:
Cheers Henning