Cannot convert GIF URL to Bitmap #976
Unanswered
briancatraguna
asked this question in
Q&A
Replies: 2 comments
-
Hmm |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi there, I am interested in this issue, I tried doing the below but I was only able to get the 3 frames out of 8 in the
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I'm trying to convert a GIF url to bitmap using coil. However the result that I am getting is a
MovieDrawable
instead of aBitmapDrawable
. This is how we're trying to do it. The image url data that I'm working with is in the form of a local storage address that's why we're putting it like that.The reason I'm trying to do it is because we needed to integrate coil with an in app messaging service from Braze. To integrate it, I needed to implement an external image library to convert an image url to a bitmap as outlined in this document: https://www.braze.com/docs/developer_guide/platform_integration_guides/android/in-app_messaging/customization/#dismiss-modal-on-outside-tap
In the documentation, it says that I can use any image library, and the example uses glide. However since our team uses coil as our image library, we wanted to use that as our external image library to integrate it. This is the example when we use Glide:
The idea is to convert a gif url to a bitmap. With Glide, it works perfectly. The gif shows up when using Glide:
But this is what shows up when using coil:
So I'm not sure how to convert an image url to bitmap properly using coil. Is there anyone who understands how to solve this issue?
Version
Library version:
Beta Was this translation helpful? Give feedback.
All reactions