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
367
votes
6 answers

Picasso v/s Imageloader v/s Fresco vs Glide vs Coil

Findings: Difference between Picasso v/s ImageLoader here ... Info about the library GLIDE here ... Facebook has its own library Fresco Newest addition to the list Coil Questions: What is the difference between Picasso v/s Imageloader v/s Fresco…
Devrath
  • 42,072
  • 54
  • 195
  • 297
91
votes
5 answers

Local image caching solution for Android: Square Picasso, Universal Image Loader, Glide, Fresco?

I am looking for an asynchronous image loading and caching library in Android. I was going to use Picasso, but I found Universal Image Loader is more popular on GitHub. Does anyone know about these two libraries? A summary of pros and cons would be…
X.Y.
  • 13,726
  • 10
  • 50
  • 63
24
votes
6 answers

Images not loading in Fresco

I'm trying to load images in Fresco, but the images don't seem to load. When I add a placeholder view the placeholder shows. public static void loadImg(final Context c, final SimpleDraweeView view, final String img){ Uri uri =…
Peter Chappy
  • 1,165
  • 4
  • 22
  • 41
21
votes
7 answers

Loading Drawable Image Resource in Fresco's SimpleDraweeView

I used Fresco 0.5.2: dependencies { compile 'com.facebook.fresco:fresco:0.5.2' } I want to use SimpleDraweeView to load a gif image from drawable. Here is my code: String path = ContentResolver.SCHEME_ANDROID_RESOURCE + "://"+…
Freddy
  • 764
  • 2
  • 6
  • 21
20
votes
1 answer

App random crashes with Fatal signal 7 (SIGBUS), code 2 or Fatal signal 11 (SIGSEGV), code 1

Context I'm creating an app that's supposed to show some images on a Fragment, most of them downloaded from the internet. I'm using Glide to handle that image loading for me on my CardViews and Fresco on my image slider (And this question on SO…
Mauker
  • 11,237
  • 7
  • 58
  • 76
17
votes
5 answers

Facebook Fresco using wrap_content

I got a bunch of drawables that I want to load using fresco, I want to use wrap_content size for those images, how can I do it in xml with fresco? Or if xml is not possible how do you do it in code?
Ilya Gazman
  • 31,250
  • 24
  • 137
  • 216
16
votes
5 answers

Using Facebook's Fresco to load a bitmap

I'm trying to replace Picasso in my android app with Fresco. However I am unsure of how to simply load a bitmap using Fresco. With Picasso I would just do the following. Bitmap poster = Picasso.with(getActivity()) .load(url) …
treebear
  • 325
  • 1
  • 4
  • 8
12
votes
5 answers

Android - How to get image file from Fresco disk cache?

I am using the Fresco library. I can't find any related info in the Fresco documentation, how can I get an image file from Fresco's disk cache?
dreambit.io dreambitio
  • 1,892
  • 1
  • 15
  • 24
9
votes
2 answers

Fresco add Bitmap to Cache programmatically

I am uploading an image to my server and once uploaded my server responds with the new URI for it (can be the same URL as the old one), I want to remove the old cached image and insert the new one for the new URI. I try to accomplish this by…
Arbitur
  • 38,684
  • 22
  • 91
  • 128
9
votes
5 answers

How I can implement zoom in Fresco Library?

I'm using Fresco to visualize images from the assets folder in a view. My problem is that by default the class com.facebook.drawee.view.SimpleDraweeView doesn't have a zoom/pinch method. Is there any property or something in the XML to enable this,…
Víctor Martín
  • 3,352
  • 7
  • 48
  • 94
9
votes
2 answers

How I can update image of fresco SimpleDraweeView, if it was set once by setImageURI

I am using Facebook Fresco library and SimpleDraweeView for displaying avatar image from file: Uri avaURI = Uri.fromFile(new File(getCacheDir(), Constants.AVA_FILE_NAME)); simpleDrawee.setImageURI(avaURI); But what if I changed file with…
Lester
  • 2,544
  • 4
  • 27
  • 38
8
votes
5 answers

Error inflating class com.facebook.drawee.view.SimpleDraweeView

I'm trying to use the fresco library. I used it before too and it was working, but now, for some reason I get: Unable to start activity ComponentInfo{com.example.home.template/com.example.home.template.MainActivity}: android.view.InflateException:…
Bogdan Daniel
  • 2,689
  • 11
  • 43
  • 76
8
votes
3 answers

USB3 Controller & Kinect 2

I recently updated a PC to Windows 8.1 in order to make it compatible to Kinect v2. It's an ASUS N53S with the following specs: CPU: Intel Core i7 - 2670QM (2.2GHz) RAM: 16 GB GPU: GEForce GT 550M USB3 Controller: Fresco Logic xHCI When running…
Pimich
  • 121
  • 1
  • 1
  • 9
7
votes
6 answers

GIFs not animating in the Android version of my React Native app

I am struggling to get my GIFs to animate on the Android version of my RN application. The iOS version is animating the looping GIFs as expected but I only see a stuck "single frame" image from the GIF on the Android device. According to the…
Simon Degn
  • 901
  • 1
  • 12
  • 40
7
votes
2 answers

Nested RecyclerView with Multiple View Lagging Scroll

I have a recyclerView with multiple view that each row of that is a recyclerView. When I scroll recyclerView, that is laggy on each row created. Here is some of my code. At below you can see config of main recyclerView: LinearLayoutManager…
Masoud Mokhtari
  • 2,390
  • 1
  • 17
  • 45
1
2 3
23 24