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
1 answer

Setting TextView's left drawable with Fresco

I've been struggling with this for a while now, using this guide: http://frescolib.org/docs/writing-custom-views.html But it suggests writing my own onDraw method, I just want to set TextView's compound drawable. How do I do that?
Adel Nizamuddin
  • 823
  • 14
  • 31
3
votes
1 answer

Can't load public image from Google Cloud Storage with Fresco

I'm trying to set an ImageView with an image with public permissions. The image loads correctly from the browser but inside my app it's not working: Uri uri=Uri.parse("https://storage.googleapis.com/mybucket/filename.jpg"); …
Roberto Betancourt
  • 2,375
  • 3
  • 27
  • 35
2
votes
1 answer

Fresco ZoomableDraweeView: How to disable swipes when not fully zoomed out?

In an Android photo viewing app, I want to allow users to: Zoom into a photo, drag to see its details, unzoom. Swipe to go to the next photo. Implementation attempt using ZoomableDraweeView in Facebook's Fresco library: private fun init(imageUri:…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
2
votes
1 answer

Load gif from network url android using fresco library

I am able to keep GIF file in drawable folder and use : fun showGif(gifView: SimpleDraweeView?, resourceId: Int) { val draweeController: DraweeController = Fresco.newDraweeControllerBuilder() …
Vikas Pandey
  • 1,115
  • 1
  • 15
  • 25
2
votes
0 answers

Fresco : A question on Inner workings when using data uri for loading images/animations (webp/gif)

So, we are using Fresco in our android app and so far it has been great. There is one issue that we are seeing when we load an image of size 8000x4500. We are seeing a Jank when that image is being loaded in the list on all devices and on some lower…
500865
  • 6,920
  • 7
  • 44
  • 87
2
votes
1 answer

How return back original SimpleDraweeView after blurring

I've have SimpleDraweeView(Fresco). How can I return back original image after blurring? Blur code: val blurController = Fresco.newDraweeControllerBuilder() .setImageRequest( ImageRequestBuilder.newBuilderWithSource(Uri.parse(imageUrl)) …
2
votes
1 answer

Fresco - onIntermediateImageSet from ControllerListener not being called

I'm trying to load a large size JPG progressively. I saw this documentation using Fresco and that's exactly what I want: A blur lazy load effect. I took their code from repo sample which looks like this wrapping things…
Victor Oliveira
  • 3,293
  • 7
  • 47
  • 77
2
votes
0 answers

Using Fresco for caching leads to OOM on some devices

INTRODUCTION: I work on an android app which has a lot of images. These images are displayed within several recycler views and view pagers. For caching the images I use Fresco which is initialised like this in Application…
Uruos
  • 83
  • 8
2
votes
1 answer

App gets killed but onTrimMemory does not get called

My app gets killed with OOM but onTrimMemory methods are not called I use Fresco for image caching, because I have a lot of images on 4.4 devices my app gets killed with OOM. I tried overriding methods like onTrimMemory() from both Activities that…
Uruos
  • 83
  • 8
2
votes
1 answer

Using Amazon S3 TransferUtility files as image source for Fresco

I have a set of images that are being periodically uploaded to an Amazon S3 bucket. I need to display these images in my app. As opposed to manually writing code to handle aspects like multi-threaded downloads and caching I wanted to use Fresco to…
Karan Modi
  • 972
  • 2
  • 13
  • 26
2
votes
3 answers

Recyclerview scrolls automatically when loading images from network

I am developing a chat app, and when I open a chat with images (that I am loading using Fresco), it scrolls automatically. Initially, I was using Picasso for loading image, but I tried changing it with other libraries, but the issue remained same.…
zohaib khaliq
  • 697
  • 10
  • 17
2
votes
0 answers

Fresco not Working with FFmpegAndroid Library

Im using implementation 'com.writingminds:FFmpegAndroid:0.3.2' in my project when I implement Fresco Image not getting displayed. And when I remove FFmpegAndroid from Gradle then Fresco start working
Ganesh Pokale
  • 1,538
  • 1
  • 14
  • 28
2
votes
0 answers

fresco attribute viewAspectRatio with databinding

When I use like this fresco:viewAspectRatio="@{carItemModel.radio}, the Android Studio would always show this error: ****/ data binding error ****msg:Cannot find the setter for attribute 'fresco:viewAspectRatio' with parameter type java.lang.float…
JARA
  • 21
  • 1
2
votes
0 answers

React native Android native module - getting cached images

I'm writing a React Native native module for Android (I'll need to do this for iOS later, so am also interested in how to do it there, but right now I only need to do this on Android), and I have a requirement to take a URI and use it to fetch an…
Jules
  • 14,841
  • 9
  • 83
  • 130
2
votes
0 answers

FATAL EXCEPTION: FrescoDecodeExecutor-2

I got the crash FATAL EXCEPTION: FrescoDecodeExecutor-2 Throwing OutOfMemoryError "Failed to allocate a 64256268 byte allocation with 16777216 free bytes and 49MB until OOM" StackTrace : java.lang.OutOfMemoryError: Failed to allocate a 64256268…
C.B.
  • 378
  • 6
  • 19