A small plugin to easily remove the background of an image using https://www.remove.bg/
-
Use
remove_bg_gimp2.py
if you have GIMP up to 2.10 andremove_bg_gimp3.py
for GIMP 3.0 or higher. -
Put the python file inside GIMP's plugin-directory. It is important, that the
.py
file is placed inside a folder with the same name as the file (except the.py
ending). E.g....\gimp\3.0\plug-ins\remove_bg_gimp3\remove_bg_gimp3.py
The pugin directory can be e.g. at
C:\Program Files\GIMP 3\lib\gimp\3.0\plug-ins\
orC:\Users\<USERNAME>\AppData\Roaming\GIMP\3.0\plug-ins\
If you cant find it, go inside GIMP toEdit->Preferences->Folders->Plugins
-
On Linux, make the file executable (
chmod +x remove_bg_gimp3.py
) and make sure you have installed python support for gimp. (gimp-python
package for ubuntu orpython2-gimp
from the AUR)
- Install the plugin as shown above
- Filters → RemoveBackground → Remove Background
- Enter your key in the key dialog. You get a API key for free at https://www.remove.bg/api
- Press
Save Settings
to save the key for next uses
- The plugin uploads the image to the website remove.bg. Don't use it for anything confidential!
- If encountering any problems, try out the gimp2.0/requests branch, which uses more advanced libraries, although it takes extra steps to install.
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!