advanced-cropper / vue-advanced-cropper

The advanced vue cropper library that gives you opportunity to create your own croppers suited for any website design
https://advanced-cropper.github.io/vue-advanced-cropper/
Other
933 stars 130 forks source link

How can i mask the cropped region with some color #133

Closed srinivaas14 closed 3 years ago

srinivaas14 commented 3 years ago

Hi @Norserium , the plugin is awesome with so many useful features. Currently I have a requirement , in which the cropped region of the image should be masked with the color, so please let me know/provide any guidelines to achieve this functionality. Thanks

Norserium commented 3 years ago

@srinivaas14, could you provide the example of what you want to get? It's not clear now.

srinivaas14 commented 3 years ago

Sure @Norserium, please check the below two images

Original Image: 2

Image after cropping: cropped_output

Assume that the green colored region was cropped. So wanted to colorize the cropped region based the on coordinates provided by cropper.

Norserium commented 3 years ago

If you want to colorize the cropped region after crop, then it doesn't concern of this library. The cropper has done its work. You got the coordinates.

You should do the image processing on your own. There is the simplest example.

srinivaas14 commented 3 years ago

@Norserium , I agree with your comment related to functionality. I've checked the given example. Thanks for the help and also for this awesome library.