Questions tagged [picasso]
Picasso is an open source powerful and dynamic image caching and downloading library by Square.
2,512
questions
-1
votes
0answers
10 views
Holistically compare speed of Glide and Picasso [closed]
Users will be divided in 2 equally large group A and B with 50% of the users in each group
Assumtions:
Best possible techniques are already applied for both libraries e.g. resizing
The metrics I'm ...
1
vote
0answers
14 views
cannot Upload and Load images in Firebase Storage in Android studio if mobile data connection is used
Android 10 cannot Upload and Load images in Firebase Storage in Android studio. In android 9 or lower and 11 it works Fine. if my phone is in data connection, it wont load or upload image but if it is ...
0
votes
1answer
42 views
Images are not getting fetched from firebase
I have tried the normal way creating custom adapter class and also default FirebaseRecyclerAdapter but the images are not loading up efficiently.
Aim is to load images from firebase But the message ...
0
votes
0answers
33 views
How can I extract this image link or attribute?
I'm having issue extracting images from website having images in brackets such as the one below
<a href="https://www.nigerianeye.com/2021/04/imo-attacks-ohanaeze-leadership-visits.html" ...
4
votes
2answers
3k views
Crop image as square with picasso
How can I crop image to square using picasso library on Android?
I need following:
and I also need
0
votes
1answer
14 views
I have problem, Why i can't run Picasso.get().load(users.getProfile()).into(R.id.profile_image); whats problem?
I have a problem. I will try to run this program. But I can't do that.
I see remark in
Picasso.get().load(users.getProfile()).into(R.id.profile_image);
I see the remark in .into .
ANd, I just want to ...
0
votes
0answers
12 views
android - picasso | crop-square-transformation taking extra spaces
Just trying to create a grid like ui in RecyclerView in android.
So in fragment, set layout manager to grid :
binding.rvGallery.layoutManager = GridLayoutManager(requireContext(), 3)
...
1
vote
1answer
450 views
Android Image stretch issue
I have a RecyclerView using it as a grid. In each view, I am loading an image from a URL. I tried with Picasso, Fresco and Glide. I have only one issue with all these libraries that is, the images are ...
2
votes
2answers
198 views
How to set a wallpaper through image link in android programmatically?
I am trying to set as wallpaper through image link.
My Question: How to show dialog box "loading Image from server" and now "Set wallpaper". After this Pop up appear to ask user ...
0
votes
0answers
43 views
Trying to load images in a RecycleView Glide and Picasso load nothing in adapter
I am trying to load 4 images in a RecyclerView using Glide, but it loads nothing. I tried Picasso but I got the same result. App has internet permission. If I run Picasso and Glide in MainActivity ...
76
votes
7answers
86k views
Picasso Load image from filesystem
Can I use Picasso library to load images from the filesystem?
I'm using startActivityForResult to let the user pick a photo from his gallery, and then want to show the selected image.
I already ...
0
votes
0answers
7 views
Could not find androidx.exifinterface:exifinterface:1.0.0. Required by: project :app > com.squareup.picasso:picasso:2.71828
Could not find androidx.exifinterface:exifinterface:1.0.0. Required by: project :app > com.squareup.picasso:picasso:2.71828
14
votes
17answers
55k views
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 ...
5
votes
1answer
7k views
Picasso to load byte array
I need to load a bitmap, that is in the file system, into byte array to upload it but needs to be:
Resized to 500x500 and in bytes[].
Async
I can do it with glide
Glide.with(context)
.load(“/...
1
vote
4answers
1k views
picasso throw an exception: context == null
i use it load image into view at RecyclerView, but throws an exception : context == null, and its occured when i got androidX. its working fine before i update;
thanks for helping ^.^
java.lang....
5
votes
2answers
3k views
How to achieve following on placeholder image in ImageView Android like Pinterest?
I have used Picasso in my Android Application which has many images. Its working and looking good. I am trying to make UI more of simple and user friendly. I have placeholder for my imageviews before ...
0
votes
2answers
34 views
Draw height of ImageView before loading from URL
I'm receiving an image from an API/Firebase storage and loading the URL into an image view using coil/glide/picasso. The height of the imageview is set to wrap content so once it is loaded it expands, ...
0
votes
0answers
21 views
Parse Image Files
Apparently Parse store images as ImageFile not URL.
I need to download the ImageFiles and storing them into imageview (postImage).
This is the code
Picasso.get().load(post.getImageFile()).into(holder....
-2
votes
3answers
71 views
Large Image Not Showing in ImageView using Picasso
This is my Image
I want to show ImageView with ScrollView
Code:
Picasso.get().load(img_url2)
.fit().centerInside()
.into(imageView2);
XML:
<ScrollView
android:...
17
votes
3answers
6k views
Android Picasso auto rotates image
I am using Picasso to load images from the web in my application. I have noticed that some images are shown rotated by 90degrees although when I open the image in my browser I see it correctly ...
0
votes
0answers
17 views
save picasso cache to a variable in java
I am creating an application that generates random images at the touch of a button, but the cache is cleared at the touch of the makeover button and I would like someone to tell me how I could when ...
0
votes
0answers
32 views
Picasso not loading image for the first time on a map icon in Kotlin
I am using Picasso library with an updated version,
implementation 'com.squareup.picasso:picasso:2.71828'
every place work fine but on a map, it does not load the image the first time,
This means if I ...
0
votes
0answers
34 views
save picasso cache to a variable
I am creating an application that generates random images at the touch of a button, but the cache is cleared at the touch of the makeover button and I would like someone to tell me how I could when ...
0
votes
0answers
18 views
How to use a default image when picasso fails to load images with jsoup
pls help me adjust or put me through on how to load a particular image if it faces same error
I'm trying to get some images gotten with jsoup but some images fail to load because it couldnt load some ...
0
votes
3answers
2k views
Image not loading through URL in ImageView using Picasso android
I am using the Picasso library to set the image from URL. This URL is working in other programming language but not in Android.
Picasso.with(context).load(product_modal.getImage()).placeholder(R....
0
votes
1answer
39 views
How to save the content of an imageView to internal storage using picasso
Hello I am making an application and I am using the picasso library and I cannot find a way to save the image that appears in the imageView since the image is randomly generated by a link and I would ...
0
votes
2answers
2k views
Getting Target Null Error message in Kotlin using Picasso
I am trying to display image using Json API but I am getting Target not null error message. I have three classes one main, adapter and model class. I have already added picasso library and the name is ...
0
votes
1answer
26 views
Picasso Dependency error when adding Map Box Dependency
Basically im getting an error from Picasso Dependency after i add Map Box Dependency.
My build.gradle map box code :
implementation ('com.mapbox.mapboxsdk:mapbox-android-sdk:7.0.0@aar')
...
0
votes
2answers
24 views
how to display either video or image from response?
I am getting a response from JSON API where a "Video" tag contains a video or image name with its extension as shown below. I want to show video if that tag contains video (I am loading ...
123
votes
9answers
112k views
How do I use disk caching in Picasso?
I am using Picasso to display image in my android app:
/**
* load image.This is within a activity so this context is activity
*/
public void loadImage (){
Picasso picasso = Picasso.with(this);
...
0
votes
1answer
22 views
Android is failing to load image with Picasso and ArrayAdapter into SwipeFlingAdapterView
Picasso is actually successful when loading into an ImageView in a layout without using an ArrayAdapter or into a SwipFlingAdapterView, but is failing to load into views that use an ArrayAdapter to ...
158
votes
12answers
113k views
How to get a context in a recycler view adapter
I'm trying to use picasso library to be able to load url to imageView, but I'm not able to get the context to use the picasso library correctly.
public class FeedAdapter extends RecyclerView.Adapter&...
0
votes
1answer
27 views
Limit max image file size with Picasso
I'm loading images from external URLs with Picasso. To prevent someone from hosting huge files that would hang my app I would like to set a max image file size before downloading it.
Is there a way in ...
0
votes
1answer
15 views
Picasso causes app to crash saying path is null? Code works in another adapter
I am trying to display User Profile Image and Username in a User Search view (RecycleView) by calling an adapter - code below.But the same code that works in another Adapter, and on the profile page ...
0
votes
0answers
27 views
Thumbnails taking too long to load
I am trying to load thumbnail using Glide but it is taking too long. The first few thumbnails load instantly but you have to wait quite a while for rest of them to load.
Glide.with(Context)
.load(...
0
votes
0answers
23 views
Android | how can i load some pictures into SliderView with Picasso?
I use a library for showing pictures in SliderView from the MySQL database with Picasso but when I try to apply this by getting five pictures in a row from the database for showing there its only show ...
3
votes
2answers
2k views
How to set ImageView height and width before image is loaded with Picasso inside Recycerview StaggeredGridLayout
I am looking to set the ImageView height before loading the image with Picasso. Trying to prevent the parent view from changing its height to the image. I am getting a height and width of the image ...
1
vote
2answers
1k views
Picasso displays image smaller than expected (half expected size)
I am using Picasso to load images from URLs like this one and display them in my Android app: http://image.tmdb.org/t/p/w185/A7HtCxFe7Ms8H7e7o2zawppbuDT.jpg
However, the problem is that they are ...
0
votes
1answer
70 views
How to load image in Picasso correctly
**Hi, i'm trying load images from url like this: link
As you can see, the images have different sizes. For example, the first image is 1920x1280 in size. The second image is 720x11523 in size and the ...
0
votes
1answer
21 views
Picasso circular transformation with border
Trying to to apply a circular transformation with a border, but the size of the border is not being respected and the antialias does not work either.
I want to create a circular transformation with ...
0
votes
1answer
21 views
Last added image only shows in recyclerview
I am using Picasso to retrieve the images from the firebase to the recyclerview.In one item, there are an image, title, and description. But If I have 2 items on my list. All Titles and descriptions ...
0
votes
2answers
54 views
Android RecyclerView with Retrofit and Picasso, image not loading in views blank screen showing
I have a recycler view in which I am trying to load data from a url using retrofit and loading images in recycler view using Picasso library. I don't know everything looks fine to me, I logged the ...
110
votes
11answers
79k views
Animated loading image in picasso
I have the following code to load an image in Picasso, using a drawable for the placeholder to display while the image is downloading. What I want though is an animated spinning progress bar style ...
1
vote
1answer
42 views
Caching Images and strings using Retrofit, okhttp and picasso
I'm trying to optimize this code for caching purpose . this code made the cache only for 1 day before it reconnect to internet again to make new cache . I wants to make it for 60 days before it access ...
0
votes
0answers
19 views
How to use Picasso to load cached image when open the app without internet
I am using Picasso to load image coming from URL. This app is usable in Offline mode too.
In online mode, Picasso fetch the user profile image from server and display it, but when user opens the app ...
0
votes
0answers
38 views
Can not showing image from database with Glide or Picasso
Hello im trying to show image in an ImageView, from the data that i stored in database, but the image was not shown. I dont know what's wrong in my code. I have tried using Glide and Picasso, but it ...
0
votes
2answers
25 views
Android Java recycle View scrolling: will it redownload images?
I am using picasso in my recycler view. I am wondering about the caching: When I scroll down the images disappear and when I scroll up again, they show again. But its displaying the progress bar for ...
0
votes
1answer
17 views
How to handle network access from volley onResponse method
I am trying to construct a BottomNavigationBar by fetching instructions from api server.
*Currently the code throws [java.lang.IllegalStateException] because it is calling Picasso from onResponse ...
3
votes
2answers
3k views
Picasso - how to get the real image size?
I load an image from URLusing Picasso library. I want to get the real image size, but I can only get the image size in memory:
Picasso.with(this)
.load(imageUrl)
.error(R.drawable.no_image)
...
0
votes
4answers
8k views
java.lang.IllegalArgumentException: Target must not be null
When I am passing image url to Picasso then it shows me error "Target must not be null". When I fetch image from url using Picasso then it shows me error. Even my id assigned to image is correct. At ...