rembg

Remove image backgrounds with one command, a staple for e-commerce cutouts

What it is

An open-source tool focused on background removal. One command or a few lines of code extract the subject with an alpha channel, with batch support. It is heavily used in e-commerce and asset processing.

Highlights

  • One command removes backgrounds and outputs alpha
  • Batch processes whole directories
  • Multiple models for different subject types
  • Embeddable as a library in your pipeline

How to use

Install with pip, run the command against a file or directory, and get transparent-background images.

License

Released under MIT. Read the terms before commercial use or redistribution, especially if you plan to offer it as a service.