-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Glide Webp support with compose integration #4943
Comments
I'm having the same problem !! did you find a solution to your problem ? |
Still experimenting but no fix. As a workaround, I am using the AndroidView as I demonstrated in the issue above. |
This appears to be due to: glide/integration/compose/src/main/java/com/bumptech/glide/integration/compose/GlideImage.kt Lines 235 to 243 in 37bc006
In particular we're using glide/library/src/main/java/com/bumptech/glide/RequestBuilder.java Lines 856 to 867 in 37bc006
|
Oh I should mention a simple workaround until this is fixed is to specify a transformation (or GlideImage(...) { it -> it.optionalFitCenter() } You can replace |
Hi Sam, |
Glide Version:
4.14.2
Integration libraries:
com.github.bumptech.glide:compose:1.0.0-alpha.1
Device/Android Version:
API 31
Issue details / Repro steps / Use case background:
I am trying to load an animated webp image from a URL. With XML views system, it works but when I tried it with the compose it fails with an exception as you can see below
As I know, Glide does support webp. So do I have to do something or add any code?
The compose integration is fairly new so I could not find something related on the docs or the web.
Moreover, I tried using AndroidView composable as follow and it worked. So this confirm that the underlying system can decode webp.
Glide load line /
GlideModule
(if any) / list Adapter code (if any):Stack trace / LogCat:
The text was updated successfully, but these errors were encountered: