Skip to main content

BulkBGRemover

A local Python command-line tool for removing backgrounds from batches of images, powered by the open-source rembg engine.

Install

Requires Python 3.11–3.13. CPU inference is included.

pip install bulkbgremover

Usage

bulkbgremover ./photos ./transparent --recursive
bulkbgremover ./photo.jpg ./transparent
bulkbgremover ./photos ./transparent --recursive --dry-run

Use a separate output folder outside the input directory. Folder structure is preserved. photo.jpg becomes photo.jpg.png to avoid collisions with photo.png. Existing outputs are skipped; originals are never modified. Supported inputs: JPEG, PNG, WebP, BMP, TIFF. Outputs are transparent PNG files. EXIF orientation is applied. Corrupt files are reported and the batch continues; a nonzero exit code indicates at least one failure. Animated images use the first frame. Symlink files are skipped.

The first real run downloads rembg's u2netp model from its upstream host; subsequent runs reuse the cache. Images are processed on your computer and are not uploaded by this tool. Model download needs internet access. Quality depends on the image; fine hair, transparent objects and complex backgrounds can require manual editing. The model and dependencies retain their respective licenses.

Bulk Background Remover is the related browser-based product. This Python tool runs locally with rembg; it does not call the website, require a website account or claim identical processing results.

Development and release

python -m pip install build twine
python -m build
python -m twine check dist/*
python -m twine upload dist/*

Authenticate with your own PyPI credentials. Never commit tokens.

License

MIT for this project's code. See LICENSE. rembg and its models are separate works.

Metadata

Release files for bulkbgremover 0.1.0

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

Source distribution (sdist)

Source distribution for bulkbgremover 0.1.0
File Size Uploaded Provenance Actions
bulkbgremover-0.1.0.tar.gz 4.3 kB Without provenance Details for bulkbgremover-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bulkbgremover 0.1.0
File Interpreter ABI Platform Actions
bulkbgremover-0.1.0-py3-none-any.whl Python 3 none any Details for bulkbgremover-0.1.0-py3-none-any.whl

Total release size: 9.3 kB

Release files / bulkbgremover-0.1.0.tar.gz

Download URL bulkbgremover-0.1.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4dec74479104632a0a801a544bfa509f6466df65b2e5e05e976b62be7d723b57
BLAKE2b-256 checksum
How to use checksums
4fc48c45129458ac13172d0ee169b14a488f089fca8eef42b0e0b2077668ec62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / bulkbgremover-0.1.0-py3-none-any.whl

Download URL bulkbgremover-0.1.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60cbf1050e2dfd81758d747666bba96c3d5c9e421527e5bd1f3796f4fb36a7c0
BLAKE2b-256 checksum
How to use checksums
1c3ffb9d9763465997f60189075073af2ba1be49182a0fd8be70807b17c75453
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Security for bulkbgremover 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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