How to use coil with web view for caching image #2417
Unanswered
nawanirakshit
asked this question in
Q&A
Replies: 1 comment
-
You can use val request = ImageRequest.Builder(requireContext())
.data(url)
.build()
val bitmap = requireActivity().imageLoader.executeBlocking(request).drawable?.toBitmap() |
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
-
I am in transition to replacing Glide with Coil. In Glide, there is an easy option to Cache web view images to load images faster. Is the same available for Coil?
The main issue I am facing in Coil is how to return the WebResourceResponse
The following is how I use Glide while compressing the bitmap.
I tried replacing the Gldie code with Colin using the following but it is a suspend function and unable to return the data
Any help is appreciable
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions