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

Out Of Memory (OOMs) using Fresco in recyclerview

I was previously using Glide but it gave me too many OOMs. Then I started using Fresco from facebook. Still I am getting OOMs. I am using Fresco in recylerviews. I have tried the…
Sourav Nag
  • 67
  • 7
2
votes
1 answer

ZoomableDraweeView is released and reset when the overview button is pressed

I have an activity with a com.facebook.samples.zoomable.ZoomableDraweeView. When the phone's overview button is pressed, the onSaveInstanceState() method is called, and I am storing DefaultZoomableController.transform value in case the view needs to…
kiewic
  • 15,852
  • 13
  • 78
  • 101
2
votes
0 answers

Prefetching images in fresco

am developing an app that prefetch the list of images before scrolling occurs in recyclerview. I tried using prefetchToBitmapCache as suggested. But its not working out. Please suggest me what is going wrong in the below code. How it loads the…
Grace Venkat
  • 189
  • 1
  • 10
2
votes
0 answers

Images flash upon loading

Description Upon loading an image (gif/jpg/webp/png) the image flashes the background color then loads the image. I expect that the image would just load and only have a placeholder when the image takes a while to load. This problem is irrelevant…
Dnam50
  • 21
  • 4
2
votes
2 answers

React native Fresco crash

I got this problem when load image on Samsung S6 Active I tried to keep proguard, multidex, bla...bla... but not working java.lang.NoClassDefFoundError: Failed resolution of: Lcom/facebook/imagepipeline/memory/PooledByteBuffer; at…
Khoa Luu
  • 125
  • 4
2
votes
0 answers

How to set the default placeholderImage when using fresco

I custom the SimpleDraweeView in my project, and the placeholderImage is using much time in my project, so I want to set the default placeholderImage, and I can remove the fresco:placeholderImage="@drawable/ic_img_loading" in my…
Better
  • 165
  • 1
  • 13
2
votes
2 answers

Correctly download and display image from server

Now, in my app, each placeholder has size, that was set in xml and after image was downloaded it resizes ImageView height with horrible visual effect. How can I get image size, that is downloading and should be displayed in ImageView, to make the…
AskQuestion
  • 346
  • 4
  • 18
2
votes
0 answers

Android Fresco image from byte array

I have some difficulties loading image from byte array on Android. I want to use Fresco framework to load image and it's setImageUri method but i don't know how to create Uri from byte array. Is this even possible? Or maybe there is another way of…
stream28
  • 141
  • 6
2
votes
1 answer

Disable ashmem for Fresco

Fresco library is using native memory to store cahced bitmaps for android version 4.x. Is there any way to disable this feature and use only java heap for cache?
nnesterov
  • 1,232
  • 1
  • 10
  • 27
2
votes
1 answer

How to get Bitmap from SimpleDraweeView?

I want to get Bitmap from SimpleDraweeView of Fresco lib, and save it to SD Card. SimpleDraweeView is child class of ImageView so it should support getDrawable() but calling this method throws ClassCastException BitmapDrawable bitmapDrawable =…
Jay Donga
  • 431
  • 5
  • 16
2
votes
1 answer

Adding Fresco Library breaks Android project

I have an Android project. It's working for several iteration now without any major issues. It's important to note that I am using a 3rd party library that uses an .so file in jnilib folder. I decided to add WebP and GIF playback implementation.…
kishidp
  • 1,918
  • 6
  • 23
  • 29
2
votes
1 answer

Shipping multiple APKs on gradle

According to the fresco document http://frescolib.org/docs/multiple-apks.html , I add flowing code to the gradle build: android { ... splits { abi { enable true reset() include 'x86',…
LichFaker
  • 65
  • 8
2
votes
2 answers

How to set dimensions of a DraweeView to "wrap_content" in the Fresco library

I'm using the Fresco library in my app to load images. The problem is that I can't set my images height to "wrap_content" because "wrap_content" is not supported in the Fresco library. So how can I make my images to look good using a DraweeView? I…
Itiel Maimon
  • 834
  • 2
  • 9
  • 26
2
votes
1 answer

Custom view and animated GIF - gif is not playing correctly

I have implemented a custom view that has a DraweeHolder. I have implemented all callbacks and listeners for my custom view (attach / detach / invalidateDrawable / setListener). If I set a GIF image url to controller - it does not play gif…
Ermat Alymbaev
  • 721
  • 6
  • 15