What's your opinion on Picasso? That seems to be t...
# android
a
What's your opinion on Picasso? That seems to be the recommended library to use to easily grab urls and (for my case) project resource drawable images
g
Very popular image downloading library for Android. What kind opinion are you looking for? There is also Glide and Fresco, all of them are popular and supported
Why do you need image downloading library to load project resource? Why not just set resource id?
a
I guess I'm just wondering why there's a need to create an external library just to use a resource id
obviously, it's optimal for urls, but I've always found it slightly aggravating that using a local in an image feels like a workaround
g
But those libraries not for resource id, those libraries created to easily download and cache images from network
a
right. Like I said, they're optimal for urls but they're also compatible for local resources
a
Depends on resource, it could be a heavy task to load
k
Hey. One advantage I’ve discovered for using either of those libraries (I use picasso) to load resources is that, they can help downscale the resource depending on the dimensions of the image view. This way, you can avoid OOM exceptions in cases where the image is abundantly larger than is needed by the view
g
Does it really common case to downscale local resources?
k
Probably not. Just one more case in favor of the libraries 🙂 Of course. If all you do is slap a resource unto an image view. Then you’re better off doing that without introducing any extra dependency. But with lots of dynamic loading, animations and all that. It would be an added advantage
g
I agree, we use it too for a couple cases, just want to say that usually better to avoid this
👍 2