toeverything / blocksuite

🧩 Content editing tech stack for the web - BlockSuite is a toolkit for building editors and collaborative applications.
https://blocksuite.io
Mozilla Public License 2.0
4.07k stars 352 forks source link

Remove background from image in Edgeless​ #6731

Open CheatCodeSam opened 2 months ago

CheatCodeSam commented 2 months ago

Description

When entering the context menu for an image, there should be an option to automatically remove the background. This would make collections of images neater, and help group them together.

Use case

Apple Freeform has this feature, and I think it would work well when ported to AFFiNE. People who use AFFiNE as a general moodboard would like this as it makes collections of images look better.

Anything else?

I would love to help implement this, but the repository is intimidating with it's size. Any pointers in the right direction and I could see what I could do. I've included a video on how it is done on Apple Freeform. I found this library which can do it on browser or on Node, which could be beneficial.

https://github.com/toeverything/AFFiNE/assets/35058096/0dff4277-08d5-4eb1-ad33-a6ac74f29fe5

Are you willing to submit a PR?

affine-issue-bot[bot] commented 2 months ago

Issue Status: 🆕 *Untriaged

*🆕 Untriaged**

The team has not yet reviewed the issue. We usually do it within one business day. Docs: https://github.com/toeverything/AFFiNE/blob/canary/docs/issue-triaging.md

This is an automatic reply by the bot.

donteatfriedrice commented 2 months ago

Thank you so much for your suggestion. We will implement the function of creating stickers and possibly the function of removing the background of images in later iterations, but it may take some time.

fourdim commented 2 months ago

Unfortunately, we cannot integrate the library you have mentioned because the LICENSE is not compatible. We will try to find other libraries instead.

CheatCodeSam commented 2 months ago

Thank you, loving the app so far.