Skip to main content

Remove The BG

A self-contained Python package for removing backgrounds from images with no external dependencies.

Features

  • Zero Dependencies: Everything is bundled - just pip install remove-the-bg and you're ready to go
  • Simple CLI: Just run rem /path/to/your/images
  • Batch Processing: Processes entire folders of images
  • Multiple Formats: Supports PNG, JPG, JPEG image formats
  • AI-Powered: Uses advanced machine learning models for accurate background removal

Installation

pip install remove-the-bg

Usage

Command Line

Remove backgrounds from all images in a folder:

rem /path/to/your/images

Remove background from a single image:

rem /path/to/image.jpg

Python API

from remove_the_bg import remove_background

# Remove background from a single image
remove_background('input.jpg', 'output.png')

# Process a folder
from remove_the_bg.cli import process_folder
process_folder('/path/to/images')

How it Works

This package includes all necessary dependencies (rembg, Pillow) bundled within the package itself, so you don't need to worry about installing additional dependencies or dealing with version conflicts.

License

MIT License - see LICENSE file for details.

Metadata

Release files for remove-the-bg 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for remove-the-bg 1.1.2
File Size Uploaded Provenance Actions
remove_the_bg-1.1.2.tar.gz 10.9 MB Without provenance Details for remove_the_bg-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for remove-the-bg 1.1.2
File Interpreter ABI Platform Actions
remove_the_bg-1.1.2-py3-none-any.whl Python 3 none any Details for remove_the_bg-1.1.2-py3-none-any.whl

Total release size: 23.1 MB

Release files / remove_the_bg-1.1.2.tar.gz

Download URL remove_the_bg-1.1.2.tar.gz
Size 10.9 MB
Tags Source
SHA-256 checksum
How to use checksums
d3b781c5b016c15645d8f3a3cb0aa41589a24f22cd3ed3599ad42735146cba15
BLAKE2b-256 checksum
How to use checksums
6286c93a5ff524b4044915bdd0c9076b1f10a6deff2d04f5f9e5b9750849b069
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.0

Release files / remove_the_bg-1.1.2-py3-none-any.whl

Download URL remove_the_bg-1.1.2-py3-none-any.whl
Size 12.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
072ed73a745bc856387944c8f4cd6892f0a2ad2d28d141bb566efc1b088edd55
BLAKE2b-256 checksum
How to use checksums
5d5583fc1ca5ba3ce031c504ff256c9a0269b61719eb10282d88b0f13a33be11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.0

Security for remove-the-bg 1.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page