Comments (4)
You should be able to use the ImagePipeline with BaseBitmapDataSubscriber for this - have a look here. You need to make sure you pass the bitmap to the system in the updateStatus
method as the bitmap will be cleaned up when onNewResultImpl
finishes.
Let me know if you have any problems.
from fresco.
What do you mean by passing the bitmap to the system?
from fresco.
As Ian explained, after submitting the request to the pipeline, pipeline returns a DataSource. Attach your BaseBitmapDataSubscriber to that DataSource.
Important note is that the bitmap we provide is valid only until onNewResultImpl finishes.
See BaseBitmapDataSubscriber.onNewResultImpl(@Nullable Bitmap bitmap)
.
That means that you cannot hold onto the reference of the bitmap we provide, either you have to copy the bitmap manually, or, If I am not wrong, the system will do just that for you when passing the Bitmap to the Widget, as this is another process and reference cannot be shared.
from fresco.
@plamenko Ok thank you. Will try it and if I find any problems on the way will ask again.
from fresco.
Related Issues (20)
- In the document, the Korean link has been cracked to some Ad link. HOT 2
- fetchWithRequest Override
- there has a memory leak, AndroidProfile tools tips me that "mCallerContext in com.facebook.imagepipeline.cache.BitmapMemoryCacheKey"。 HOT 3
- Fresco Unsatisfied Link Error
- IllegalStateException
- when update 3.1.0 Building error:Failed to transform vito-options-3.1.0.aar HOT 2
- Libwebp v1.0.0 存在CVE-2023-4863漏洞 HOT 7
- 3.1.1 Exception loading animated gif HOT 2
- GIFs do not load on v3.1.3 HOT 3
- Bug: Crash on MIUI 14.0.5 HOT 1
- React Native app crashes on startup with fresco version 3.1.3 HOT 11
- java.lang.ClassNotFoundException: Didn't find class "com.facebook.imagepipeline.nativecode.NativeJpegTranscoderFactory"
- Fresco is dying. HOT 1
- too many gifs in recyclerview
- How to get free hard cap?
- error initializing Fresco HOT 1
- Can't render high quality images in react-native because of Fresco
- Picture just get "blown-up" when I use RoundingParams to get a rounded corner picture
- use contentResolver.loadThumbnail to speed up loading video
- Error inflating class com.facebook.drawee.view.SimpleDraweeView
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fresco.