remove-background
Installation
SKILL.md
Remove image background (local, offline)
Removes the background from images using rembg (a U^2-Net ONNX model) entirely on this machine. No API key, no network calls after the one-time model download, no rate limits, and it keeps full resolution. This is the robust local alternative to the remove.bg website/API.
The output is always a PNG with a transparent alpha channel (the subject kept, the background
knocked out). Confirm success by checking the output exists and is mode RGBA with both transparent
and opaque pixels.
The command
Everything runs through this single, self-contained invocation - no install step, no wrapper file needed. Substitute the input/output paths:
# Single image -> transparent PNG
uvx --python 3.11 --with "numba>=0.59.1" --from "rembg[cpu,cli]" rembg i INPUT OUTPUT.png