Parsing Gif image is reducing the quality and stacking frames

477 Views Asked by At

I have a gif image as

enter image description here

However using glide i do this

  Glide.with(this)
                    .load(Uri.parse("file:///android_asset/" + "stickers/" + emoji))
                    .into(gifImage);

What i get is

enter image description here

Exactly what is going on, I have tried GifImageView library too and result is same. How can i parse gif image properly in android?

after adding datasource

enter image description here

<ImageView
                android:layout_marginTop="10dp"
                android:layout_marginLeft="10dp"
                android:visibility="gone"
                android:layout_height="100dp"
                android:layout_width="100dp"
                android:id="@+id/chateeGifImage"
                />
1

There are 1 best solutions below

5
On

try like this

Glide.with(con).load(url).asGif().diskCacheStrategy(DiskCacheStrategy.SOURCE).into(ivImage);