square / picasso

A powerful image downloading and caching library for Android
https://square.github.io/picasso/
Apache License 2.0
18.71k stars 3.97k forks source link

Implement image caching. Then it would be awesome. Right now while offline this library cannot load images from url even though once they are downloaded. #1011

Closed aneesu401 closed 9 years ago

JakeWharton commented 9 years ago

Disk-based caching for this use-case is the responsibility of the HTTP client. If you use OkHttp and install a disk cache it will store images for offline use in accordance to their cache headers. This is completely outside of Picasso's control–Picasso has no disk cache, only the HTTP client.

aneesu401 commented 9 years ago

Yes i understood.

Before i was using lazy loading images refering the below link: http://androidexample.com/Download_Images_From_Web_And_Lazy_Load_In_ListView_-_Android_Example/index.php?view=article_discription&aid=112&aaid=134

It was helpful for caching the images also. but i was slow. Then i found your library which i felt is pretty much faster and maintain quality of images after downloading. Still i believe i would stick with this library(picasso) if caching feature was there.

JakeWharton commented 9 years ago

We implement memory caching for all source from which images are loaded. Whether that source loads the image or persists it locally on disk is completely transparent to Picasso and we are not going to start being in the business of disk caching.