Questions tagged [picasso]

Picasso is an open source powerful and dynamic image caching and downloading library by Square.

Working with bitmaps can be hard on Android apps. There are too many things that can go wrong. The golden rule is decode only as much as you need, never more. Picasso is the realization of this rule by Square.

With automatic canceling, transformations and a fluent API, Picasso provides a super fast, elegant solution for downloading, caching and displaying images to your Android app.

Official Site: http://square.github.io/picasso/

2541 questions
19
votes
3 answers

Fade in animation while loading image Using Picasso

I want to show a fade effect when image is loading on Imageview. I am using picasso to cache image and display in image view. I have searched alot for this but couldnt find any solution. I have used earlier before and i know in some version they had…
Android
  • 1,085
  • 4
  • 13
  • 28
19
votes
5 answers

Using picasso library with a circle image view

I am looking at using the Picasso library to download an image from URL and pass this into circle image view, but since picasso requires that you pass in an actual imageView I have come to a standstill on how to do it I am using the picasso library…
MichaelStoddart
  • 5,571
  • 4
  • 27
  • 49
19
votes
2 answers

Image adapter leaking memory

I have a simple ListActivity that shows images and I inizialize my OkHttpClient for Picasso Builder in the constructor of the ImageAdapter class: picassoClient = new OkHttpClient(); picassoClient.interceptors().add(new Interceptor() { @Override …
GPack
  • 2,494
  • 4
  • 19
  • 50
19
votes
4 answers

Adding borders for image rounded image android

What i have:: I have a Imageview for which i am making image as a circle using picassso What i what to do:: I want to add a black border for rounded image using my current implementation, how to achieve this without using third party…
Devrath
  • 42,072
  • 54
  • 195
  • 297
19
votes
5 answers

Appcompat CardView and Picasso no rounded Corners

I do not know where Exactly i Should Adress this issue, if it is my fault, there is something in the Picasso Lib Wrong or in the Cardview Library. Basicly i have a CardView containing an image (Full Card Covered) and A TextView overlaying. When…
Angelo
  • 1,711
  • 2
  • 12
  • 11
19
votes
4 answers

How to load video thumbnails using square picasso library?

Currently I'm loading MediaStore Image Thumbnails using picasso into the ListView with the following snippet: (video.getData() returns the actual path of the image such as mnt/sdcard/...) Picasso.with(this.context) .load(new…
Mohammad Sharaf Ali
  • 569
  • 1
  • 4
  • 19
18
votes
18 answers

Android Picasso Image does not load

There are two situations I load images, first, just directly from the internet, and second, load images that are downloaded in the device. And whenever I load, 8~9 out of 10 images are shown, and 1-2 missing. I see that decode returned false, and…
xosuma
  • 267
  • 1
  • 3
  • 11
18
votes
2 answers

getting image width and height with picasso library

i'm using picasso library to download and load images into imageView. now i want to know how i can get image width and height before loading them in imageViews ? i have a listview with an adapter that contains two imageView(one of them is vertical…
user2549089
  • 281
  • 2
  • 4
  • 14
18
votes
3 answers

How to load image from SD card using Picasso library

i need to load images from the Sd card into gridview. For efficiency i'm using Picasso Library Picasso.with(activity).load(images.get(position).getDataPath()) .resize(96, 96).centerCrop().into(viewHolder.image); I used the following…
user3607798
  • 769
  • 2
  • 7
  • 15
17
votes
1 answer

Check if image exist in Cache Picasso

I want to check if image url is contained inside cache. I am using Picasso image loader . this is my code new Picasso.Builder(this).downloader(new OkHttpDownloader(client)).build(); now Picasso.getCache() does not have get(key) . though Cache…
Ahmad
  • 189
  • 2
  • 6
17
votes
3 answers

Glide - load single frame from video at specific time?

I'm trying to use Glide to step through frames in a video file (without running into the keyframe seeking issue that Android suffers from). I can do this in Picasso by doing something like: picasso = new…
jgads
  • 257
  • 1
  • 3
  • 13
17
votes
7 answers

Picasso IllegalArgumentException Target must not be null

I'm trying to set image by using Picasso library on my project. When I click image of the View,I'm getting an error on Picasso execution. Logcat of the app java.lang.IllegalArgumentException: Target must not be null. at…
Zafer Celaloglu
  • 1,438
  • 1
  • 17
  • 28
17
votes
4 answers

Picasso loads pictures to the wrong imageview in a list adapter

I'm loading an image from a server to a list view item using picasso like this: public View getView(int position, View convertView, ViewGroup parent) { LayoutInflater inflater = (LayoutInflater) context …
Tom Klino
  • 2,358
  • 5
  • 35
  • 60
17
votes
1 answer

Getting Picasso to pre-fetch forthcoming images

I'm using Picasso with a GridView, loading 200 images over the network. Right now it looks like Picasso is not triggering an image load over the network until the image starts to come into view on the screen. Is there a way to have Picasso…
DaBeeeenster
  • 1,481
  • 3
  • 16
  • 20
16
votes
3 answers

Picasso image loading issue with Android 9.0 Pie

I am not able to load images using Picasso library in Android 9.0 Pie. Actually, it works fine for below versions. It is not showing any error message. Someone has shared his logs on Github using Picasso.get().setLoggingEnabled(true); He has…
tejraj
  • 300
  • 2
  • 4
  • 16