Gif image show high quality and flashes when scrolling RecyclerView as video shows
See original GitHub issueFresco: 0.9.0 Issue: Gif image show high quality and flashes when scrolling RecyclerView as video shows. Seems Gif images doesn’t resize and cache. Log: D/Charles.Lin: file:///storage/emulated/0/Download/test_image_a.jpg inMemoryCache:true D/Charles.Lin: file:///storage/emulated/0/DCIM/Gif/tumblr_n8d80y1BDV1rk9vano1_500.gif inMemoryCache:false D/Charles.Lin: file:///storage/emulated/0/DCIM/Gif/tumblr_n2nj3tO0Oh1qjk2rvo1_500.gif inMemoryCache:false D/Charles.Lin: file:///storage/emulated/0/DCIM/Gif/florian-1.gif inMemoryCache:false D/Charles.Lin: file:///storage/emulated/0/DCIM/Gif/DfQqM.gif inMemoryCache:false D/Charles.Lin: file:///storage/emulated/0/DCIM/Tango/IMG_20160105_165156_0_.jpg inMemoryCache:true D/Charles.Lin: file:///storage/emulated/0/DCIM/Tango/IMG_20160105_163839_0_.jpg inMemoryCache:true D/Charles.Lin: file:///storage/emulated/0/DCIM/Tango/IMG_20160105_112223_0_.jpg inMemoryCache:true
Code in bindView:
Uri imageUri = Uri.fromFile(new File(galleryImage.getPath()));
boolean inMemoryCache = Fresco.getImagePipeline().isInBitmapMemoryCache(imageUri);
Log.d("Charles.Lin", imageUri + " inMemoryCache:" + inMemoryCache);
ImageRequest request = ImageRequestBuilder.newBuilderWithSource(imageUri)
.setResizeOptions(new ResizeOptions(100, 100))
.build();
DraweeController controller = Fresco.newDraweeControllerBuilder()
.setOldController(mSimpleDraweeView.getController())
.setImageRequest(request)
.setAutoPlayAnimations(false)
.build();
mSimpleDraweeView.setController(controller);
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (2 by maintainers)
Top GitHub Comments
We’ve released Fresco v1.4.0, which includes a new implementation for animated GIFs that is way more performant, especially in the case where you display multiple GIFs. Let us know if you’re still experiencing problems with 1.4.0.
@plamenko - it’s worth mentioning also that this is an issue with react-native when using removeClippedSubviews on a ListView.