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

how to make fresco trim the caches

When configuring the image pipeline, you can set the maximum size of each of the caches. But there are times when you might want to go lower than that. For instance, your application might have caches for other kinds of data that might need more…
Logan Guo
  • 865
  • 4
  • 17
  • 35
0
votes
1 answer

Fresco close overlay view

I have a profile class with a photo. When I click on photo it shows overlay. I need to close this overlay by clickink on close image. So, I can't realize it. There are classes when I tried do this: ProfileClass.kt class WorkerProfileFragment :…
Neuron
  • 1,020
  • 2
  • 13
  • 28
0
votes
1 answer

Fresco ControllerBuilder CPU usage

I am trying to show a loading icon when the image hasn't loaded yet and hide the loading icon when the image is ready. I am using Fresco library and I used the code below successfully to implement what I want: private void loadImage(ImageView…
stavros.3p
  • 2,244
  • 6
  • 20
  • 37
0
votes
2 answers

Fresco custom image decoder resize options are not applied

I have a custom decoder that uses Conceal to load encrypted images from local storage. Everything works (images are displayed) but performance is terrible when loading local camera images since no downsampling or bitmap resizing is applied at all…
minivac
  • 961
  • 1
  • 7
  • 9
0
votes
1 answer

Fresco obtaining embedded cover art

The Android fresco image loading library provides a variety of components to customize image loading from several sources. In my situation, I want to retrieve the embedded cover art of an audio/mp3 file (not the album art which can be accessed using…
user3162424
0
votes
1 answer

Avoid flicker when switching from low res image to GIF using Fresco

I'm loading GIFs into SimpleDraweeViews in a RecyclerView using Fresco. I'd like to load a static thumbnail first while the GIF is downloading and then the GIF as soon as it's available. It's working, but there's a white flicker when the thumbnail…
Bea
  • 148
  • 2
  • 5
0
votes
1 answer

FrescoImageViewer: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme

I am trying to use fresco image viewer, But I am getting this error, when click listener is being executed java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. at…
Ashok Mandal
  • 278
  • 2
  • 13
0
votes
1 answer

How to add custom Icon on fresco's rounded border in android

I am using Fresco image loader library and I want to add custom image icon on Fresco's rounded border only. I have googled to find such functionality but not got any proper solution. Kindly help me that how can it possible. I am attaching screenshot…
Mohd Sakib Syed
  • 1,679
  • 1
  • 25
  • 42
0
votes
1 answer

Fresco Library Not Loading Any Images

So due to memory issue I thought about using Facebook's Fresco library. So this is what I did, First I added the following dependencies, compile 'com.facebook.fresco:fresco:1.3.0' compile 'com.facebook.fresco:animated-gif:1.3.0' Then I initialized…
Bucky
  • 39
  • 1
  • 5
0
votes
2 answers

Fresco does not support resize options like picasso

I was trying to use Fresco over Picasso to avoid memory leaks but found that Fresco does not support scaling as it is supported by Picasso Following is my code to resize image using picasso …
amodkanthe
  • 4,345
  • 6
  • 36
  • 77
0
votes
1 answer

Displaying images in a Recyclerview

I have a recyclerview that I want to display images that I have saved in drawables in jpeg. For loading I was using an Async Task, but this doesn't preload or Cache them. I was told to use one of the tools like fresco or glide to do that, but which…
newToEverything
  • 309
  • 4
  • 13
0
votes
1 answer

Image does not display in SimpleDraweeView of Fresco when open react-native page for the first time

I wrapped up android native UI components, and integrated it with my react native application. The layout is like this.
Elyon
  • 1
  • 3
0
votes
3 answers

Image Getting cut on Border with SimpleDraweeView android

[![enter image description here][1]][1]This is my SimpleDraeeViwe after image load image is not loading as full, means its covering full width of image view but image getting cut on left and right side. Also tried with android:adjustViewBounds =…
Lovekush Vishwakarma
  • 3,035
  • 23
  • 25
0
votes
1 answer

Loading Images With Fresco From The Internal Storage

I am trying to do: fun getBitmap(uri: String?) { val imagePipeline = Fresco.getImagePipeline() val builder = ImageRequestBuilder.newBuilderWithSource(Uri.fromFile(File(uri))) val request = builder.build() val dataSource =…
pavel163
  • 145
  • 3
  • 7
0
votes
0 answers

Get drawable resource reference from image loaded by Fresco

I'm using Fresco in a project, and I need to get the drawable resource of the image downloaded with it. It's for the leanback BackgroundManager. It needs a drawable for change the background, but the image I'm getting is on the cloud. I,ve seen…
adalpari
  • 3,052
  • 20
  • 39