GithubHelp home page GithubHelp logo

manu12121999 / removebg-gimp Goto Github PK

View Code? Open in Web Editor NEW
133.0 5.0 17.0 62 KB

A small GIMP plugin to easily remove the Background of an Image with remove.bg. Keeps the image size and the original Image

Python 100.00%
gimp removebg-gimp remove background remove-image-background

removebg-gimp's Introduction

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

  1. Install the plugin as shown in the installation section
  2. Filters โ†’ removebackground
  3. Insert your RemoveBG API Key, which you can get from https://www.remove.bg/api 1

2

3

Installation

Windows:

  1. Put the remove_background.py file in your plugins directory:
  • C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins
  1. restart GIMP

Linux:

  1. 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

  1. Put remove_background.py in this directory and make it executable with chmod +x remove_background.py

  2. Make sure you have installed python support for gimp. (gimp-python package for ubuntu or python2-gimp from 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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.