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
3
votes
0 answers

Fresco Scaling memory problems

When using Fresco im detecting on some devices (All ART, none Dalvik) are getting OOM exceptions. The stacktrace looks like this: java.lang.OutOfMemoryError·Failed to allocate a 1000012 byte allocation with 834924 free bytes and 815KB until…
3
votes
1 answer

SimpleDraweeView black filckering on replacement image with Fresco

I am trying to replace mutiples images (from local storage) using the same After a while the black flickering disappear and works well. See the video: http://sendvid.com/q92ry52l I am only doing: mSimpleDraweeView.setImageURI("file://" +…
3
votes
2 answers

Getting bitmapdrawable from fresco

I'm trying to get the bitmap that from SimpleDraweeView. I already setted my SimpleDraweeView with uri image: final Uri uri = new Uri.Builder() .scheme(UriUtil.LOCAL_RESOURCE_SCHEME) …
Dex Sebas
  • 247
  • 3
  • 13
3
votes
1 answer

How do I know when a Webp/Gif animation has completed in Fresco

I am using the following code to display a Gif, and I need a callback to know when the Webp/Gif animation has completed: DraweeController controller = Fresco.newDraweeControllerBuilder() .setUri(uri) .setAutoPlayAnimations(true) …
WP Roger
  • 41
  • 4
3
votes
0 answers

Zooming an image inside ScrollView

I have a ScrollView and it contains an image(I am using Fresco to display the image) and below the image are some additional information about the image, which can be scrolled down. What I want is to be able to pinch and double tap zoom the image.…
Amit Tiwari
  • 3,684
  • 6
  • 33
  • 75
3
votes
1 answer

Gif blinking in RecyclerView using Fresco

I use Fresco to load gif in a Recyclerview. Here is my kotlin code: fun loadResizeImage(uri: Uri, view: SimpleDraweeView, width: Int, height: Int) { val request = ImageRequestBuilder.newBuilderWithSource(uri) …
Allen Vork
  • 1,536
  • 3
  • 16
  • 29
3
votes
3 answers

difference between imageview and com.facebook.drawee.view.SimpleDraweeView in android

Can someone please explain the real difference between ImageView and com.facebook.drawee.view.SimpleDraweeView.and why fresco not use imageview.? can we upload a image on server through fresco? if yes please share code..
Saurabh Verma
  • 79
  • 1
  • 5
3
votes
1 answer

Fresco: Images dissapear after scrolling RecylcerView

I have a Horizontal RecyclerView: each item has an image loaded into it using the Facebook Fresco image library. However, while the correct image loads initially as it is scrolled a bit onto the screen, it disappears when the RecyclerView is…
ITJscott
  • 522
  • 4
  • 17
3
votes
1 answer

fresco Postprocessor:java.lang.RuntimeException: Canvas: trying to use a recycled bitmap

12-21 11:01:14.045: E/AndroidRuntime(6819): java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@4180103 12-21 11:01:14.045: E/AndroidRuntime(6819): at …
Hilda
  • 45
  • 1
  • 7
3
votes
1 answer

Fresco Image with both width and height - match_parent doesn't display

I have an app which loads an image using the fresco library. I have 2 problems. 1. If I use the fresco image like this
Bogdan Daniel
  • 2,689
  • 11
  • 43
  • 76
3
votes
5 answers

Displaying images from SD Card using Fresco library on android

I can show Images from URL using Fresco image library as shown in their website - Uri u = Uri.parse("https://assets-cdn.github.com/images/modules/logos_page/GitHub-Mark.png"); SimpleDraweeView draweeView = (SimpleDraweeView)…
Gissipi_453
  • 1,250
  • 1
  • 25
  • 61
3
votes
1 answer

Fresco Library Issues

I'm using Fresco library for loading images and gifs into my application. The big restriction I have encountered with Fresco is that the layout width and height have to be set. So I have set up my simple drawee view like so: …
DJ-DOO
  • 4,545
  • 15
  • 58
  • 98
3
votes
1 answer

what should callerContext param be for Fresco's prefetchToBitmapCache?

In order to implement image pre-fetching, we get the ImagePipeline and call prefetchToBitmapCache on it. however, both the API Javadoc…
yrizk
  • 394
  • 2
  • 8
3
votes
2 answers

How to save image to sdcard when using Fresco?

I am using Fresco to download and display Gifs in my app. I want to save the image to sdcard when click it, but i can't figure out how to do it. final View view = inflater.inflate(R.layout.fragment_gif_viewer, container, false); SimpleDraweeView…
dss886
  • 51
  • 1
  • 6
3
votes
0 answers

Android - View is moving out of screen post rotation

Hi I'm trying to perform Translate, Scale and Rotate on View (FrameLayout) in android. In brief, I've a Fresco's SimpleDraweeView inside FrameLayout, as Fresco is not supporting Matrix transformations, so as an alternative I put that in FrameLayout…
Pavan Kunchapu
  • 263
  • 3
  • 9