mosch / react-avatar-editor

Small avatar & profile picture component. Resize and crop uploaded images using a intuitive user interface.
https://react-avatar-editor.netlify.app/
MIT License
2.35k stars 369 forks source link

How to change background color of Selected area #372

Closed vakhariaheet closed 2 years ago

vakhariaheet commented 2 years ago

is there any way to change the background colour of the selected area?

mosch commented 2 years ago

You can pass backgroundColor prop to the component <AvatarEdtior backgrounColor="#bada55" />

vakhariaheet commented 2 years ago

I want Something like this

image

Instead colored border I want color overlay

Thanks,

mosch commented 2 years ago

Thats not supported right now.

I could think of something like a "tintColor" prop. Or a more generic approach of allowing you to manipulate the canvas manually in a callback. PR welcome.