Large images (from file) not loading in Picasso, no obvious error seen

Michael

I'm writing an app which gets a list of the images from the gallery on a device and then shows them in a GridView. In my adapter I have the following code (where the width and height are those of the view it will be placed in):

PicassoSingleton.with(mContext).load("file://" + imageUri).resize(getImageWidth(), getImageHeight()).centerInside().placeholder(R.drawable.image_placeholder).error(R.drawable.image_error).into(holder.image);

On most devices this works really well. However, on some devices where the photos taken are very large (such as the Samsung Galaxy S5- 16MP) some images do not load, and the error resource is displayed. I do not see any obvious log messages from Picasso debugging, only the following:

D/Picasso(20171): Main        errored      [R7]+501ms

I presume this is due to memory issues, but I am not sure how to go about fixing these. Is it possible to tell Picasso to compress the images? Or is there something else I'm missing?

Thanks

Michael

This issue appears to be linked to https://github.com/square/picasso/issues/539

Updating to the latest version of Picasso (here 2.3.3-SNAPSHOT) fixed this

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Images not loading using Picasso no error given

From Dev

Loading images from disk with picasso, does it cache it?

From Dev

Loading Images With Picasso From The Internal Storage

From Dev

Picasso is not loading the images from url with custom adapter

From Dev

Picasso Images not loading in a GridView

From Dev

Picasso loading duplicate images

From Dev

Picasso Images not loading in a GridView

From Dev

Picasso library is not loading images from the server correctly in a listview

From Dev

Picasso image loader: loading updated images from url

From Dev

loading images from array list using picasso library

From Dev

Loading large images from disk in ios app

From Dev

Android : Picasso is not loading some images

From Dev

Loading multiple images with Picasso on background

From Dev

Slow Loading big images with Picasso

From Dev

Picasso Images are not loading in Gridview Android

From Dev

Loading large background images

From Dev

File location error when loading images

From Dev

Picasso image loading previously cached images

From Dev

Picasso Images are loading slow in android, why?

From Dev

Picasso Images are loading slow in android, why?

From Dev

Picasso isn't loading scrolled images efficiently?

From Dev

Load large images with Picasso and custom Transform object

From Dev

Load large images with Picasso and custom Transform object

From Dev

First time error loading picture with Picasso

From Dev

Picasso loading image error-Android

From Dev

Picasso loading image error-Android

From Dev

Picasso not loading updated image from Web in android

From Dev

Android,Picasso. Is not loading an Image from a url

From Dev

Picasso not loading image from a URL, sometimes

Related Related

HotTag

Archive