Skip to content
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

Gif Support #10

Open
Hatzen opened this issue Feb 8, 2024 · 0 comments
Open

Gif Support #10

Hatzen opened this issue Feb 8, 2024 · 0 comments

Comments

@Hatzen
Copy link
Contributor

Hatzen commented Feb 8, 2024

It seems when using a gif with glide we cannot open the zoom view as it crashes.
It would be nice to have animated gifs supported as well. It looks like we need to replace BitmapDrawable with more generic class, which probably leads to problems with other features like saving the image and encoding it as base64.

java.lang.ClassCastException: com.bumptech.glide.load.resource.gif.GifDrawable cannot be cast to android.graphics.drawable.BitmapDrawable
                                         at ozaydin.serkan.com.image_zoom_view.ImageViewZoom.getBitmap(ImageViewZoom.java:75)
                                         at ozaydin.serkan.com.image_zoom_view.ImageViewZoom.onClick(ImageViewZoom.java:132)
                                         at android.view.View.performClick(View.java:7125)
                                         at android.view.View.performClickInternal(View.java:7102)
                                         at android.view.View.access$3500(View.java:801)

Tested with Version 1.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant