scaleflex / filerobot-image-editor

Edit, resize, and filter any image! Any questions or issues, please report to https://github.com/scaleflex/filerobot-image-editor/issues
MIT License
1.37k stars 341 forks source link

Can we support eraser tool like paint in this editor? #78

Open akjaiswal161191 opened 4 years ago

akjaiswal161191 commented 4 years ago

I am looking for erasing the image content using an eraser tool.Are we planning to add it in future release?

dzmitry-stramavus commented 4 years ago

hey @akjaiswal161191 ,

Can you provide us with usecase? And what kind of tool you mean by "eraser"? what it should do exactly?

akjaiswal161191 commented 4 years ago

I am looking for a tool that will allow me to erase image pixels. So if your image has some content and you want to remove it, it should doable with a freehand tool.

akjaiswal161191 commented 4 years ago

This is useful when I want to remove the unneeded part of the image content. With crop functionality, you can do that but it's not freehand tool.

dzmitry-stramavus commented 4 years ago

yes, it's on our roadmap to add freehand tool. But there is no ETA for it for now.

akjaiswal161191 commented 4 years ago

okay, thanks. We can check if we can build that tool on top of the existing lib.

dmnro123 commented 1 year ago

hi @dzmitry-stramavus is there any update on the eta for the eraser tool?

AhmeeedMostafa commented 1 year ago

@dmnro123 not yet, time is a bit tight currently for planning and implementing but we will give an interest soon.

jiutian2012007 commented 1 year ago

hi @akjaiswal161191 you can take a look at this. https://konvajs.org/docs/sandbox/Free_Drawing.html example: useAnnotation({ globalCompositeOperation: mode === 'brush' ? 'source-over' : 'destination-out', name: TOOLS_IDS.PEN, })

SamHeijder2002 commented 1 year ago

Is there a update on the eraser?