This plugin automatically removes the image background using https://www.remove.bg/. The website uses neuronal networks to distinguish the foreground from the background. After that, a layer mask is applied to the image, which can be edited to improve the cut-out, if needed.
Search your plugins directory. The directory might be at:
~/.gimp-2.10/plug-ins/
~/.config/GIMP/2.10/plug-ins
or /usr/lib/gimp/2.0/plug-ins
Put _removebackground.py in this directory and make it executable with chmod +x remove_background.py
Make sure you have installed python support for gimp. (gimp-python
package for ubuntu or python2-gimp
from the AUR)
It is not an official remove.bg plugin, so keep their Terms of Service in mind (https://www.remove.bg/tos)
Besides that, you can do whatever you want with my code!