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
16
votes
4 answers

java.lang.IllegalArgumentException: Path must not be empty in Picasso

I am loading image from mysql DB using Picasso into custom listview. The image is loading when the URL is passed directly but when i assign the URL to string and pass it then it throws exception saying Path must not be empty. String imageStringUrl…
user2269164
  • 1,095
  • 2
  • 15
  • 31
16
votes
4 answers

Picasso Image downloaded again for an ImageView with different dimensions?

I'm using Picasso in my application for loading image efficiently and is doing his job at the best.The issue is that, currently if i call Picasso.with() multiple times with same url, however each time with an image view having different dimensions,…
Stella
  • 1,817
  • 6
  • 30
  • 55
16
votes
5 answers

Using Facebook's Fresco to load a bitmap

I'm trying to replace Picasso in my android app with Fresco. However I am unsure of how to simply load a bitmap using Fresco. With Picasso I would just do the following. Bitmap poster = Picasso.with(getActivity()) .load(url) …
treebear
  • 325
  • 1
  • 4
  • 8
16
votes
3 answers

Download and Save Images Using Picasso

I'm trying to show my news in a custom ListView. Each news is included of some images and I want to 1.download images from server 2.save in local storage 3.save path of images into SQLite 4.show images in ListView using my custom adapter. I just…
Farshad Kazemi
  • 358
  • 1
  • 4
  • 16
16
votes
8 answers

Clear Cache memory of Picasso

I'm trying to clear the cache memory of Picasso via Android coding. Can anyone please help me in this issue..? I have tried using the following code, but this was not useful in my…
Parthiban M
  • 1,104
  • 1
  • 10
  • 30
16
votes
5 answers

Doesn't Picasso support to download images which uses https protocol

Hello I am using the Picasso library to download the images from URL. URL : https://fbcdn-profile-a.akamaihd.net/hprofile-ak-prn2/t1.0-1/s200x200/1472865_191408954385576_14109897_n.jpg URL is using https protocol, here it is not working for me to…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
16
votes
1 answer

Get image uri from picasso?

I have a fairly large list of image URL's that I'm using to load up a ViewPager using Picasso. I need to be able to provide sharing capabilities for these images via an intent (ultimately sharing via ShareActionProvider). From what I've read,…
loeschg
  • 29,961
  • 26
  • 97
  • 150
15
votes
4 answers

How to load gif image in placeholder of Glide/Picasso/Ion etc

Not able to find perfect solution for loading a gif image in placeholder Glide .with(context) .load("imageUrl") .asGif() .placeholder(R.drawable.gifImage) .crossFade() .into(imageView) Tried asGif() property of Glide…
Dinesh Sunny
  • 4,663
  • 3
  • 30
  • 29
15
votes
12 answers

Image uri doesn't display images on ImageView on some android device

I have an ImageView. When you click on a ImageView, it will open gallery and you pick up a image and show it on ImageView. I have a condition that when I close my app and then I open it, the image will retain there . So for that, I am storing image…
abh22ishek
  • 2,631
  • 4
  • 27
  • 47
15
votes
6 answers

How To Load Layout Background Using Picasso

Can anyone point me towards an example of how one might change an XML layout's background programatically using Picasso? All the examples I've found are able to update an ImageView using Picasso - but not a layout background. Unable to set…
15
votes
2 answers

Picasso Does Not Preserve Aspect Ratio While Resizing Image

I'd like to preserve the aspect ratio of an imageView and resize it to fill / fit as large as possible without distorting/changing it's aspect ratio using Picasso. Thus far I've found this: scaling image size in Picasso which suggests using: …
15
votes
4 answers

Picasso Library - Out of Memory

I am using Picasso library latest version 2.4.0 in my app for downloading and caching images. There are roughly 25-30 images of size 300KB-400KB each. I think that this is no way something big or heavy. Even though the app is running fine, I'm…
Adeel Ahmad
  • 939
  • 1
  • 10
  • 20
15
votes
4 answers

Picasso not loading the image

here's the code for picasso: ImageView img = (ImageView)findViewById(R.id.product_image); Picasso.with(this) .load(_url) .fit() .into(img, new Callback() { @Override public void onSuccess() { } …
arash moeen
  • 4,533
  • 9
  • 40
  • 85
15
votes
3 answers

Picasso: load images to widget listview

I'm implementing widget with listview based on this tutorial: http://laaptu.wordpress.com/2013/07/24/populate-appwidget-listview-with-remote-datadata-from-web/ (source code:…
ab.helly
  • 517
  • 1
  • 5
  • 21
15
votes
2 answers

load Bitmap with RGB_565 via Picasso

is there a way to pass either a bitmap-config or force this BitmapConfig? I would like to not do it via Transformation() as this would consume more CPU than needed and I am not sure if this is done before the cache ( my main reason to do this is…
ligi
  • 39,001
  • 44
  • 144
  • 244