-
Notifications
You must be signed in to change notification settings - Fork 865
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
Using TouchImageView with Glide library #135
Comments
You can try this:
I can show the images with ViewPager and Glide successfully. |
I have an older version of the project which has zoom and pan but without double tap. That loads the images with glide perfectly. Glide.with(getActivity()).load(imageUrl).into(imageView); And that is working perfectly everywhere else except here. |
What @ralphilius said works - but what if I want to add a .thumbnail() as well using glide.load() inside of that? |
I have been having the same issue. It seems to occur only when glide was loading the image over the network, not when it was returned from the cache. I found that the fix mentioned in #112 of adding |
@ralphilius solution works for me. However, the image only appear after I pinch the screen a little bit. Someone tell me what's the issue here? How can I debug this? EDIT: |
I know I'm too late for the party but I did some trail/error on this issue and I found a solution. Instead of loading image as path, i tried to load as File and it worked.
|
@ralphilius' solution works on low resolution images. I wonder if there is a way to handle something like 7000 x 3000 size. This is how I made it handle large res:
|
Thanks to @lukesleeman, that pointed to the solution! I finally fixed it. Image showed only after the first loading. And now it works. |
Hey all, As @lukesleeman said, getting network images through Glide was messing the TouchImageView. Sometimes image didn't load, sometimes they loaded after trying zooming it. So, before Glide, just setImageResource. Then use Glide normally (thumbnail, placeholder, fade, ...). It works for me @niteshkhatri !
|
I've resolved issue as suggested by @aimanbaharum setting the initial zoom by 1f |
@ralphilius What is the solution to load both bitmap and gif? |
Hi there, Once again, TouchImageView is having some compatibility issues with Glide. The newest stable release of Glide (v4.0.0-RC0) does not seem to properly feed images into TouchImageView irrespective of which of the solutions mentioned on this page I try. @ralphilius 's solution does work, but loading the image as a bitmap is too slow for the fairly large images that I need to load into TouchImageView. Would anyone have any suggestions for techniques I could try to make this work? Thanks so much! |
I have been able to load an Animated Gif into TouchImageView, here is my solution:
Hope this helps |
and my solution is
|
I had the same issue while loading image from url into TouchImageView using Glide. It would show a black screen. Here is the complete code:
|
This worked perfectly
|
It's 5 years old, so it seems to be irrelevant. If it's still an issue, please reopen it |
Hi, when I display the image using Glide library, I can't see the Image. However is I use setImageBitmap() method, the image is perfectly displayedwith all zoom capabilities.
How can I use TouchImageView with Glide library?
The text was updated successfully, but these errors were encountered: