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

How to manually add local file to fresco image cache

I use fresco as my app image loader. My app client upload local image files to remote server. After upload successfully, in order to save bandwidth and avoid download images again from remote server, I use the following method to manually add a…
alijandro
  • 11,627
  • 2
  • 58
  • 74
2
votes
1 answer

Fresco, how to scale images for different devices

I'm building an app with the Fresco library, by Facebook. I'm having issues trying to understand how I should implement a view using Fresco, if my App will be usable among different devices. As you can see in the images attached, I have a Nexus6, a…
Waclock
  • 1,686
  • 19
  • 37
2
votes
1 answer

How to create Circle ProgressDrawable to use in fresco?

I'm new to Fresco library and trying to show circle Progressbar when loading image from uri into DraweeView. Now I'm using default progressbar as below: GenericDraweeHierarchyBuilder builder = new GenericDraweeHierarchyBuilder(getResources()); …
Kingfisher Phuoc
  • 8,052
  • 9
  • 46
  • 86
2
votes
1 answer

Fersco : Integrate Asynctask with simpledraweeview

I am using custom listview with baseadapter. Each row contain SimpleDraweeView. I am mapping simpleDraweeView with my local images. If image is not available in local path then i will create a bitmap based on my constraint and store it into that…
Arun
  • 510
  • 1
  • 4
  • 21
2
votes
1 answer

Fresco : Listview showing wrong image when fast scrolling

I have custom listview. In listview contain 200 items. When i am scrolling fast from top to bottom Or bottom to top listview showing wrong image. If i am scrolling slowly then its work fine. SimpleDraweeView in XML :…
Arun
  • 510
  • 1
  • 4
  • 21
2
votes
1 answer

Adapter showing the wrong images while using Fresco library

i have used fresco library to load images in the adapter. but the images are not set correctly as i expected. Here is my code. please help me. thanks in advance. public class HomeListingAdapter_recyler1 extends RecyclerView.Adapter { private…
Grace Venkat
  • 189
  • 1
  • 10
2
votes
4 answers

Play Gif Once using Fresco Library

I am using the following code to play the gif, but here it keeps on repeating the gif play. Uri uri; DraweeController controller = Fresco.newDraweeControllerBuilder() .setUri(uri) .setAutoPlayAnimations(true) . // other setters …
Fahim
  • 12,198
  • 5
  • 39
  • 57
2
votes
4 answers

How to Use com.facebook.fresco and com.parse:parse-android without confilicting each other?

I'm quite new to gradle with android studio. I'm building a project and was using fresco to load images to my Android application. Now i need to intergrate push notifications service so decided to use parse. But When I was trying to Intergrate parse…
2
votes
1 answer

Fresco animated preloader

How can I set gif from res:/ to SimpleDraweeView as preloader for another uri? Facebook says, if I want to use animated images in SDV, I must use a controller, BUT, I must use a controller to download image from url as well, and I cant use two…
Ivan Mitsura
  • 433
  • 4
  • 15
2
votes
4 answers

Android: how to rotate image using Fresco

I am using Fresco to load images from phone storage by uri into SimpleDraweeView (both internal and external, using content provider - 'content://'). They are loading fine, but keep rotating if they have orientation set in their properties. I tried…
aleien
  • 786
  • 1
  • 9
  • 22
2
votes
1 answer

How do I get Fresco to display the full quality image

I'm using Fresco to display images from the local drive. My problem is that Fresco won't display the full high quality image in the DraweeView, instead it displays tiny images with very low quality as seen here: (I've also viewed the picture with…
Mehmet K
  • 2,805
  • 1
  • 23
  • 35
2
votes
2 answers

Fresco - Bitmap too large to be uploaded into a texture

I'm trying to display an Image from the gallery into a SimpleDraweeView. I don't know if this is the way to do it, but what I'm doing is going into the gallery, selecting the image and getting the image path. After that I use…
Bogdan Daniel
  • 2,689
  • 11
  • 43
  • 76
2
votes
2 answers

Is it possible to add a bitmap into BitmapMemoryCache manually in Fresco?

I need to manually add a bitmap to the cache specifying the URI (as key). If the request URI to download the image matches with the key, I need the pipeline to load the bitmap from the cache instead of making the network call. I found this method…
Chethan N
  • 1,110
  • 1
  • 9
  • 23
2
votes
1 answer

How to show webp animation in Android

I would like to use WebP format to animate GIFs as the alternative to native GIF format or MP4, but I have no clue how to actually decode it in Android and show it in the view. The Giphy app could be used as the reference. I would like to achieve…
Edward Foux
  • 21
  • 1
  • 2
2
votes
2 answers

Remove Base64 prefix from InputStream

I have a Base64 encoded Image String residing in a File Server. The encoded String has a prefix (ex: "data:image/png;base64,") for support in popular modern browsers (it's obtained via JavaScript's Canvas.toDataURL() method). The client sends a…
chRyNaN
  • 3,592
  • 5
  • 46
  • 74