Comments (8)
Can you give us more context on what are you trying to achieve? I'm pretty sure we already support what you need, but I need some clarifications in order to be able to help.
from fresco.
1- I get images from server.
2- then I blur the image.
I want to display both images the original one and the blurred one together in one imageView (DraweeView)
Example :
from fresco.
If I am interpreting your example correctly, you want only a part of the image to be blurred?
Or do you want to display those two side-by-side (but this seems not to be the case based on your example)?
Or do you want to display first the original and then the blurred image?
from fresco.
I want to display them side-by-side , I do that by taking the original image cut it then blur it after that put both the original and the blurred image togather.
So I blur and cut the image in on PostExecute but I want both the original and the blurred get returned to DraweeView
from fresco.
The easiest solution would be to use the post-processor that blurs the part of the image only.
Post-processor provides you a bitmap to modify, so why not just blurring the part of it?
Can you give us more context on why do you "want both the original and the blurred image get returned to DraweeView"? To solve the problem you described, this is not necessary and by providing a more context, we may be able to devise a better solution.
from fresco.
This is an example why I need two images , or if you have any other ideas you are welcome :D
from fresco.
Okay, if you are not actually changing the blurred area, but rather just sliding in the blurred image, then you can have two SimpleDraweeViews: the original one below, and the blurred one on top that slides in.
middle of the animation end of the animation
visible portion: | | | |
blurred view on top: [ABCDE]---> | [ABCDE] |
original view below: [abcdefghijkl] [abcdefghijkl]
If you do want to expand the blur area, you can use the same trick. Just this time instead of sliding in the blurred image, just make width of the blurred view expand:
middle of the animation end of the animation
visible portion: | | | |
blurred view on top: [AB]---> | [ABCDE] |
original view below: [abcdefghijkl] [abcdefghijkl]
from fresco.
Thank you alot you have fixed my problem :D , I will try it.
from fresco.
Related Issues (20)
- Couldn't find "libnative-imagetranscoder.so" HOT 1
- dlopen failed: library "libnative-imagetranscoder.so" not found - V3.0.0 HOT 16
- Please help to confirm the version of relevant imported components in version 2.6.0
- Changing border color doesn't reflect in the view
- App crashing with java.lang.UnsatisfiedLinkError: dlopen failed: library "libnative-imagetranscoder.so" not found when trying to load jpg web images HOT 2
- Compiling the Fresco source code failed.
- CVE-2018-14498 from libjpeg-turbo HOT 9
- Delayed Rendering of Images with Custom Decoders HOT 4
- How to use AbstractAdaptiveCountingMemoryCache
- Compile error with new Mac Apple Chip
- OutOfMemoryError: Failed to allocate a 251648770 byte allocation [Local large images allocation issue] HOT 2
- While updating app from playstore the images not displaying properly HOT 2
- 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
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.