RemoveBG-GIMP
RemoveBG-GIMP copied to clipboard
A small GIMP plugin to easily remove the Background of an Image with remove.bg. Keeps the image size and the original Image
RemoveBG-GIMP
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.
Usage
- Install the plugin as shown in the installation section
- Filters → removebackground
- Insert your RemoveBG API Key, which you can get from https://www.remove.bg/api



Installation
Windows:
- Put the remove_background.py file in your plugins directory:
- C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins
- restart GIMP
Linux:
- 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 remove_background.py in this directory and make it executable with
chmod +x remove_background.py -
Make sure you have installed python support for gimp. (
gimp-pythonpackage for ubuntu orpython2-gimpfrom the AUR)
Problems:
- If encountering any problems, try out the gimp2.0/requests branch, which uses more advanced libraries, although it takes extra steps to install.
Notes:
- The plugin uploads the image to the website remove.bg. Don't use it for anything confidential!
- Hard-code your key in the code for more convenience
- This branch works only for GIMP up to version 2.10. For newer versions of GIMP (2.99 or 3.0), check out the branch "gimp3.0".
Licence:
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!