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

I have problems with circle image in Fresco

I have problem with round image, not works, Fresco download the image and display but not transform in a circle. I don't know what I am missing this is my code. Gradle: apply plugin: 'com.android.application' android { compileSdkVersion 24 …
4
votes
1 answer

Fresco Android GIF/WEBP animation not playing

I decided to use Fresco as it offers solution to my problem: GIF and WEBP playback. According to the documentation: http://frescolib.org/docs/animations.html I can use these codes to automatically play animation: Uri uri; DraweeController…
kishidp
  • 1,918
  • 6
  • 23
  • 29
4
votes
1 answer

Unity android project throws "Your hardware does not support this application sorry" error

I have been investigating for 2 days. I have read a lot of things. To summarize what I read: Non-NEON devices will not work with UNITY 5 builds. You should set your Install Location to "Automatic or Force Internal" You should set your Write Access…
Onur Demir
  • 708
  • 2
  • 13
  • 35
4
votes
1 answer

Gradle failed with Facebook SDK, Fresco lib and Retrofit?

Did anyone tried to implement Facebook SDK and Fresco lib and Retrofit? My gradle fails with duplicate about bolts. Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. >…
Zookey
  • 2,637
  • 13
  • 46
  • 80
4
votes
3 answers

Caching gifs in fresco

I am trying to make a recyclerview with gifs. Everything shows perfectly but fresco do not cache gifs. After scroll recycler down and scroll up again, gifs are loading once again. I supposed they should be cached and loaded a bit quicker. Previously…
BactaTank
  • 164
  • 2
  • 10
4
votes
2 answers

SimpleDraweeView not resizing after scaling image in fresco

I'm using fresco to display images in a list view. however i have an issue. when i scale my image using methods that maintain aspect ratio like CENTER_CROP, and the scaled image height becomes smaller than my simpledraweeview's height,…
Edijae Crusar
  • 3,473
  • 3
  • 37
  • 74
4
votes
1 answer

When is an Image Cache removed from disk in fresco android?

I need to know how long a cached version of URI would be on the disk in fresco cache?
Whats Tools
  • 101
  • 2
  • 6
4
votes
2 answers

Android 5.0 doesn't support BitmapFactory.Options inPurgeable

I'm learning the fresco lib of Facebook. I see that storing bitmap on ashmem with the option is inPurgeable so great. It takes us a lot of care about memory management but decreases OutOfMemoryError on Davilk heap. I wonder why Android 5.0 doesn't…
Huy Duong Tu
  • 7,798
  • 5
  • 25
  • 46
3
votes
1 answer

Can Fresco's automatic resizing on big images (>2048px) be disabled/tuned?

On images with a >2048px long dimension Fresco automatically applies a resizing: Android cannot display images more than 2048 pixels long in either dimension. This is beyond the capability of the OpenGL rendering system. Fresco will resize your…
Matteo Mazzarolo
  • 4,420
  • 1
  • 16
  • 17
3
votes
1 answer

How to set image to Google Play Books API thumbnail using Fresco?

I am trying to load in a Google Play books image thumbnail from a URL using Fresco (I've also tried using Glide and Picasso) 1.10.0. I am able to load in another image (such as this https://i.imgur.com/6zDqjm8.jpg), but only the placeholder image…
knjk04
  • 115
  • 2
  • 11
3
votes
1 answer

Fresco Debug Overlay shows red when view is bigger than image

When using Fresco Debug Overlay its showing a red overlay when the image is smaller than the view. Since Fresco doesnt perform upscaling, and it relies on the ashmem, how should I fix this? Lets say that: I have a view that fits the whole width of…
3
votes
1 answer

Fresco Image Viewer doesn't show photo

I'm using fresco image viewer on my app for showing post photos when clicked make it full screen. It was working last week, i didn't changed anything in my code but now it doesn't work. Here is my showFullScreen function public void…
Mami
  • 197
  • 1
  • 9
3
votes
1 answer

How does instagram android implement the navigation?

I'm building an Android app whose navigation is similar to Instagram, which has multiple tabs and each tab has its own history. Implementation I implemented this navigation by using ViewPager with FragmentPagerAdapter. When navigating down each tab,…
3
votes
1 answer

How to remove cache from Fresco Simple drawee

I want to remove the cache from simple drawee using Fresco library because if image are changed from server then still show old image in simple drawee. Below are my code. public class FrescoSimpleDraweeActivity extends Activity { private…
Mohd Sakib Syed
  • 1,679
  • 1
  • 25
  • 42
3
votes
1 answer

Android fresco library gif not animating

i am a newbie in android. Below is a sample code that I copied and modified slightly but it is not able to animate the gif image . It just shows up as a static image in my app. gifImage is not animating. I even tried to initialize the controller…
S Tom
  • 33
  • 1
  • 3
1 2
3
23 24