jzbrooks / vgo

vector graphic optimization
MIT License
39 stars 1 forks source link

Path distortion - People #31

Closed jzbrooks closed 3 years ago

jzbrooks commented 3 years ago

Describe the bug The following vector drawable is distorted. The rear person's head is misshapen.

<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24">
    <path android:pathData="M13.932 8.63c-0.215-1.348-0.918-2.533-1.924-3.367C12.13 3.441 13.646 2 15.5 2 17.433 2 19 3.567 19 5.5S17.433 9 15.5 9c-0.564 0-1.097-0.133-1.568-0.37zM17 18v-0.328c0-1.208-0.502-2.358-1.394-3.108-0.675-0.567-1.594-1.2-2.758-1.695 0.603-0.778 1.003-1.722 1.118-2.753C14.443 10.042 14.954 10 15.5 10c2.58 0 4.39 0.944 5.434 1.71 0.682 0.5 1.066 1.265 1.066 2.07V18h-5zm-8.5-5C6.567 13 5 11.433 5 9.5S6.567 6 8.5 6 12 7.567 12 9.5 10.433 13 8.5 13zm5.434 2.71C14.617 16.21 15 16.975 15 17.78V22H2v-4.219c0-0.805 0.384-1.572 1.066-2.072C4.111 14.944 5.922 14 8.5 14c2.58 0 4.39 0.944 5.434 1.71z" android:fillColor="#7A7A7A" android:fillType="evenOdd"/>
</vector>
jzbrooks commented 3 years ago

089b70f is the short-term fix for this. This case should be considered when relanding the optimization.