Metadata-Version: 2.4
Name: bulkbgremover
Version: 0.1.0
Summary: Local batch background removal with folder preservation and safe PNG output
License-Expression: MIT
Project-URL: Homepage, https://bulkbgremover.com/
Requires-Python: <3.14,>=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: rembg[cpu]<3,>=2.0.86
Requires-Dist: Pillow<14,>=12.1
Dynamic: license-file

# BulkBGRemover

A local Python command-line tool for removing backgrounds from batches of images,
powered by the open-source [rembg](https://github.com/danielgatis/rembg) engine.

## Install

Requires Python 3.11–3.13. CPU inference is included.

```sh
pip install bulkbgremover
```

## Usage

```sh
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.

## Related website

[Bulk Background Remover](https://bulkbgremover.com/) 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

```sh
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.
