avocado icon indicating copy to clipboard operation
avocado copied to clipboard

Image with scaleX not working

Open cristan opened this issue 6 years ago • 2 comments

I have the following image:

<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
        android:width="5dp"
        android:height="8dp"
        android:viewportHeight="8"
        android:viewportWidth="5">
    <group
        android:translateX="5.5"
        android:translateY="-22">
        <group
            android:scaleX="-1">
            <path
                android:fillColor="#acacac"
                android:pathData="M1.4543568 30L5.5 26 1.4543568 22 0.5 22.94359 3.5912863 26 0.5 29.05641 1.4543568 30Z"/>
        </group>
    </group>
</vector>

After converting:

<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="5dp" android:height="8dp" android:viewportHeight="8" android:viewportWidth="5">
    <path android:fillColor="#acacac" android:pathData="M6.954-52L11-48l-4.046 4L6-44.944 9.091-48 6-51.056 6.954-52z"/>
</vector>

The new image is completely invisible. My guess is that the scaleX is causing the bug.

cristan avatar Dec 19 '18 17:12 cristan

Sorry for the delay, will investigate!

alexjlockwood avatar Dec 22 '18 18:12 alexjlockwood

Hmm, I've confirmed the bug... looks like an issue specific to the scaleX="-1"...

alexjlockwood avatar Dec 22 '18 19:12 alexjlockwood