Questions tagged [fresco]

Fresco is an Android library (supports Android 2.3 and above) developed by Facebook and dedicated to image loading. It handles such image operations as downloading, caching, transforming and drawing. Fresco provides useful out of the box features like progressive JPEG streaming and offers a lot of customization.

When handling images on a mobile device, a lot of things can go wrong - from failed network connection up to getting OOM crashes. One may also need to customize an image's appearance for which the Android system provides very few out of the box solutions.

That's basically what Fresco does: loading (network layer), displaying (animated GIF's, circle transformations etc.), handling (memory/disk cache, managing the cache).

Read more:

360 questions
2
votes
1 answer

Fresco not updating disk cache with images from the network

I have been trying to use Fresco library by Facebook. From the documentation I understood that the caching of images works out of the box with the ImagePipelines when we use the SimpleDraweeView. I pretty much see things working perfectly only with…
mahesmohan
  • 784
  • 1
  • 13
  • 33
1
vote
0 answers

JNI DETECTED ERROR IN APPLICATION - crash while loading image from URL

When I try to load some specific images that are somehow distorted I get the below error and then my app crashes: JNI DETECTED ERROR IN APPLICATION: JNI NewFloatArray called with pending exception java.lang.IllegalArgumentException: Parameter d must…
stavros.3p
  • 2,244
  • 6
  • 20
  • 37
1
vote
0 answers

How to stop autoscroll in a reverse RecyclerView for a Chat application in case of imageLoading from url

I am facing an issue of autoscrolling of chat items when images are being loaded from the url. Currently I am using glide to load the images. Reverse list is working fine for text chats and in images also with normal place holders, but when it comes…
Sudhansu
  • 780
  • 1
  • 9
  • 28
1
vote
0 answers

React native: Race condition between 2 fresco initialization

We want to custom our own ExecutorSupplier in Fresco for profiling purposes. We call FrescoModule.getDefaultConfigBuilder(reactContext) first to get default config builder and set ExecutorSupplier on the builder. Since…
summerli
  • 11
  • 1
1
vote
0 answers

Passing Custom headers (sessionid) in fresco

I want to pass the sessionid as the header while downloading the image in fresco. I tried this code val okHttpClient = OkHttpClient.Builder().addInterceptor{chain -> chain.proceed(chain.request().newBuilder().addHeader("YourHeader",…
1
vote
1 answer

A Launch Crash about fresco

java.lang.IllegalMonitorStateException: unlock of unowned monitor on object of type 'com.facebook.common.references.SharedReference' on thread 'Thread[127,tid=3297,Runnable,Thread*=0xb9625800,peer=0x13d473f0,"FrescoDecodeExecutor-4"]' Have never…
Rannver
  • 13
  • 2
1
vote
0 answers

React Native disable Fresco image downsampling

I need to disable Fresco downsampling for the component and I read that Fresco needs to be initialized inside android/app/src/main/java/com//MainApplication.java. Fresco > Resizing/Downsampling Fresco > Configuring the Image…
Christos Lytras
  • 36,310
  • 4
  • 80
  • 113
1
vote
3 answers

How to retrieve Image/Gif file loaded to SimpleDraweeView - Android

So basically I'd like to access the file/ByteArray of the Image or Gif that was loaded into a SimpleDraweeView. When Fresco downloads an image from a url, I want to save that image in my database for future access (to help reduce data usage) since…
IIRed-DeathII
  • 1,117
  • 2
  • 15
  • 34
1
vote
1 answer

Fresco fails to load images in Android 9(Pie) unless the image URL is HTTPS

I was using Fresco Image library to load images from the web in my Android app. It was working fine with most devices I had tested on (below Android 9). I recently got complaints that images weren't loading on Android 9(Pie) running devices. Since I…
1
vote
1 answer

Android Fresco SimpleDraweeView.setImageURI not working for this http url

mySimpleDraweeView.setImageURI(Uri.parse("http://cdn.cnn.com:80/cnn/.e1mo/img/4.0/logos/menu_politics.png")); This is a url from link preview for cnn. It is an http url and not an https url. It has a port :80 in the path. If I throw that url into a…
CodeSmith
  • 1,621
  • 1
  • 13
  • 31
1
vote
1 answer

How to programmatically create SimpleDraweeViews using Fresco and Android

I am trying to get 10 images from the server and programmatically create fresco draweeViews and put them into scrollable view. What I have tried so far private LinearLayout linearLayout; @Override protected void onCreate(Bundle…
wolf
  • 399
  • 1
  • 6
  • 19
1
vote
3 answers

how to define a LottieDrawable?

It looks like LottieComposition.Factory is deprecated already. I'm wondering how I can define a LottieDrawable? I could not find the documentation for this. The reason I want a Drawable is because I want to pass a Lottie animation into fresco as a…
zluan
  • 21
  • 8
1
vote
1 answer

Fresco: How to set SimpleDraweeView failureImage tint color?

I am using Facebook's Fresco Android library (version 1.11.0). I have a SimpleDraweeView with a failureImage drawable attribute. However, I'd like to set the tint color of this drawable. I didn't find a "failureImageTint" or related. How would I do…
Luiz
  • 2,429
  • 8
  • 28
  • 43
1
vote
1 answer

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 stretched. This is because of the sizes of the…
Amsheer
  • 7,046
  • 8
  • 47
  • 81
1
vote
3 answers

How to fetch image URL from Fresco's SimpleDraweeView?

Get Image URL from Fresco SimpleDraweeView. I have recyclerView items with EditText and SimpleDraweeView, also have on the button on my activity. on button click, I want to get whole recyclerview items data into ArrayList. Here is the code which…
Arbaz.in
  • 1,478
  • 2
  • 19
  • 41