Coder Social home page Coder Social logo

Comments (8)

plamenko avatar plamenko commented on April 28, 2024

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.

mohammedhammouri avatar mohammedhammouri commented on April 28, 2024

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 :

screenshot_1

from fresco.

plamenko avatar plamenko commented on April 28, 2024

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.

mohammedhammouri avatar mohammedhammouri commented on April 28, 2024

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.

plamenko avatar plamenko commented on April 28, 2024

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.

mohammedhammouri avatar mohammedhammouri commented on April 28, 2024

This is an example why I need two images , or if you have any other ideas you are welcome :D
_____15_v_1920_1080

from fresco.

plamenko avatar plamenko commented on April 28, 2024

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.

mohammedhammouri avatar mohammedhammouri commented on April 28, 2024

Thank you alot you have fixed my problem :D , I will try it.

from fresco.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.