Install latest/stable of rembg

Ubuntu 16.04 or later?

Make sure snap support is enabled in your Desktop store.


Install using the command line

sudo snap install rembg

Don't have snapd? Get set up for snaps.

Channel Version Published

Details for rembg

Package name

  • rembg

License

  • MIT

Last updated

  • 3 November 2026 - latest/stable
  • 3 November 2026 - latest/candidate

Websites


Contact


Source code


Report a bug


Report a Snap Store violation

Share this snap

Generate an embeddable card to be shared on external websites.

Remove image backgrounds from the command line or a local web UI

rembg removes the background from images with pretrained segmentation models (U2-Net, BiRefNet, BRIA RMBG, SAM and others) with ONNX Runtime. It processes single files, whole folders, binary streams, or serves an HTTP API with a browser interface. CPU support is included; NVIDIA GPU support is available through the optional cuda component.

Examples

rembg i ~/Pictures/photo.jpg ~/Pictures/photo-cut.png
rembg i -m birefnet-general -a ~/Pictures/photo.jpg out.png
rembg p ~/Pictures/input ~/Pictures/output
cat photo.jpg | rembg i > photo-cut.png
rembg s
rembg d bria-rmbg

Models

Models are downloaded on first use and kept in ~/snap/rembg/common/models, which survives snap refreshes. Custom models passed with model_path must be placed under ~/snap/rembg/common.

File access

rembg can use images in your home directory. To also use USB drives and other removable media (/media, /mnt), run:

sudo snap connect rembg:removable-media
Revision Channel Version Published Build Commit Download SBOM

The build and commit information is derived from build infrastructure records.


Install rembg on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.