Skip to main content

QuickBG Logo

⚡ QuickBG

PyPI Version PyPI Downloads License Build Status Tweet

Lightning-fast AI background removal CLI tool for Mac, Linux, and Windows


✨ Features

  • 🚀 Blazing Fast - Process images in seconds using state-of-the-art AI
  • 🔒 Private & Secure - Runs entirely locally on your machine
  • 🎯 High Quality - Produces clean cutouts with excellent edge handling
  • 📦 Batch Processing - Process entire folders with a single command
  • 🔧 Zero Config - Works out of the box with sensible defaults
  • 🍎 Mac Optimized - Native macOS support with pipx installation

📸 Example

# Remove background from a single image
$ quickbg photo.jpg
Processing: photo.jpg
Saved: photo-nobg.png

# With custom output
$ quickbg product.png -o cleaned.png

# Batch process a folder
$ quickbg -b ./productPhotos/
Found 25 image(s) to process
Output directory: ./productPhotos/nobg
--------------------------------------------------
[1/25] img_001.jpg... OK
[2/25] img_002.jpg... OK
...
--------------------------------------------------
Done! 25/25 images processed successfully

🖼️ Before & After

Before After
Product with background Product no background

📥 Installation

# Install pipx if you don't have it
brew install pipx

# Install QuickBG
pipx install quickbg

Linux

pipx install quickbg

Windows

pipx install quickbg

Using pip (All Platforms)

pip install quickbg

From Source

git clone https://github.com/jschof1/quickbg.git
cd quickbg
pip install -e .

🔧 Usage

Single Image Mode

# Basic usage (saves as filename-nobg.png)
quickbg input.jpg

# Specify output filename
quickbg input.png -o result.png

# Enable alpha matting for better edges (slower)
quickbg input.jpg --alpha-matting

Batch Processing Mode

# Process all images in a folder
quickbg -b ./photos/

# Specify output directory
quickbg -b ./photos/ -o ./output/

# With alpha matting
quickbg -b ./photos/ -a

Supported Formats

  • Input: JPG, JPEG, PNG, WebP, BMP, TIFF, TIF
  • Output: PNG (with transparency)

⚙️ Options

Flag Description
input Input image file or directory
-o, --output Output file or directory path
-b, --batch Batch mode: process all images in directory
-a, --alpha-matting Enable alpha matting for better edge refinement
-v, --version Show version number
-h, --help Show help message

🔨 Development

Setup Development Environment

# Clone the repository
git clone https://github.com/jschof1/quickbg.git
cd quickbg

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install in development mode
pip install -e ".[dev]"

# Run tests
pytest

# Format code
black src/ tests/

# Lint code
ruff check src/ tests/

Run Tests

pytest tests/ -v

🤝 Contributing

Contributions are welcome! Please read our Contributing Guidelines first.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • rembg - The amazing AI background removal library
  • U-2-Net - The underlying deep learning model

📊 Stats

Alt


Made with ❤️ by Jack Schofield

Metadata

Release files for quickbg 1.0.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 quickbg 1.0.0
File Size Uploaded Provenance Actions
quickbg-1.0.0.tar.gz 7.4 kB Without provenance Details for quickbg-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 14.2 kB

Release files / quickbg-1.0.0.tar.gz

Download URL quickbg-1.0.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
83245f2e29afce316468f47fee44e7aa6001ea799c8a2c46a0300ca344899c10
BLAKE2b-256 checksum
How to use checksums
b09dfb0b5c4d6e66373e289adb1a97e0895bc04ec51dead6ccb7f1626d3113ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.12

Release files / quickbg-1.0.0-py3-none-any.whl

Download URL quickbg-1.0.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b99c4f88a3c692f7c0294565a14b4979c2046afbebe1cbb7ca93a33a373463b
BLAKE2b-256 checksum
How to use checksums
1fb7f31c7bc349b2360b96a12266b1a0c0fdbc4610b5de52002f3bad08a2d8a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.12

Security for quickbg 1.0.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

1.0.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