GIMP Plugin#

Remove image backgrounds inside GIMP 3.0 using a local withoutBG server. The plugin sends your active layer to the server, fetches an alpha matte, and attaches it as an unapplied layer mask. All processing stays on your machine.

Source: github.com/withoutbg/withoutbg-gimp

Requirements#

DependencyNotes
GIMP 3.0GIMP 2.x is not supported
Local withoutBG serverMust be running before you invoke the plugin (see below)

Start a local server#

The plugin talks to a withoutBG HTTP API on 127.0.0.1. Pick one backend:

Docker service (port 8000)#

Cross-platform. Uses the open weights v3 ONNX model from withoutbg-inference.

Server URL for the plugin: http://127.0.0.1:8000

docker run --rm -p 8000:8000 withoutbg/withoutbg-openweights-v3-service-cpu:latest
Press the copy button to copy this command to your clipboard

Full Docker docs: /docs/open-weights-model/docker

Mac server app (port 8000)#

macOS only. Uses on-device Core ML for faster inference on Apple Silicon.

  1. Install and open the Mac server app from the App Store.
  2. Start the server from the menu bar. Default URL: http://127.0.0.1:8000

Docker service-* and the Mac server both use port 8000 by default, so the plugin works with either backend without changing settings. Run one backend at a time on that port.

The plugin dialog accepts any server URL if you change the port in Settings.

Verify the server#

Health check

curl http://127.0.0.1:8000/health

Expected response:

Health response

{
  "status": "ok",
  "model": "withoutbg-openweights-oss",
  "version": "4.1.0"
}

Wait until /ready returns {"status":"ready"} on first startup (model warmup).

Install the plugin#

Install script

git clone https://github.com/withoutbg/withoutbg-gimp.git
cd withoutbg-gimp
./install.sh

Restart GIMP. The plugin appears under:

Menu path

Tools ▸ WithoutBG ▸ Remove Background…

Manual install paths#

PlatformPlug-ins directory
macOS~/Library/Application Support/GIMP/3.0/plug-ins/
Linux~/.config/GIMP/3.0/plug-ins/

Layout after install:

Install layout

plug-ins/withoutbg/withoutbg.py

Usage#

  1. Open an image in GIMP and select the layer to process.
  2. Go to Tools ▸ WithoutBG ▸ Remove Background…
  3. Check the dialog. It shows server status (model name and version from /health).
  4. Confirm Server URL is http://127.0.0.1:8000 (default for both Docker and Mac server).
  5. Click Remove Background.

The plugin:

  1. Exports the active layer as PNG (longest side capped at 1024 px before upload).
  2. POSTs to /v1/remove-background?output=matte with Content-Type: image/png.
  3. Upscales the returned matte to full layer resolution.
  4. Adds it as an unapplied layer mask on the active layer.

To commit the mask: Layer ▸ Mask ▸ Apply Layer Mask.

Server URL#

Default in the plugin: http://127.0.0.1:8000 (same for Docker service-* and Mac server).

BackendTypical URL
Docker service-*http://127.0.0.1:8000
Mac serverhttp://127.0.0.1:8000
Custom porthttp://127.0.0.1:port — must match server settings

You can override the URL per session in the plugin dialog; GIMP remembers the last value.

To change the baked-in default, edit SERVER_URL at the top of withoutbg/withoutbg.py.

API the plugin uses#

Both backends expose the same endpoints:

EndpointPurpose
GET /healthServer status (shown in the dialog)
POST /v1/remove-background?output=matteRaw PNG in, grayscale matte PNG out

The plugin reads the X-Latency-Ms response header but does not display it.

Troubleshooting#

SymptomFix
Server not reachableStart Docker or the Mac server. Confirm curl http://127.0.0.1:8000/health (or your port).
Server shows ready but inference failsModel still warming up. Wait for /ready to return 200, then retry.
Wrong portUpdate Server URL in the dialog to match your backend (default 8000). Only one backend should listen on that port at a time.
Plugin missing after installRestart GIMP. Confirm withoutbg/withoutbg.py is under the plug-ins directory above.
Layer mask looks softExpected at mask edges after upscale from 1024 px matte; paint on the mask to refine.

Uninstall#

Uninstall commands

rm -rf ~/Library/Application\ Support/GIMP/3.0/plug-ins/withoutbg   # macOS
rm -rf ~/.config/GIMP/3.0/plug-ins/withoutbg                        # Linux

Restart GIMP.