A lightweight image background removal tool built with Python and Tkinter. Supports both a command-line interface and a desktop GUI. All processing is done locally — no data is sent to any server.
- Remove backgrounds from JPG, JPEG, PNG, and WebP images
- CLI tool for quick, scriptable usage
- Desktop GUI with side-by-side original/result preview and a progress bar
- Saves output as a PNG with a
_no_bgsuffix alongside the original file
- Python 3.11+ (<3.14)
- Dependencies listed in
requirements.txt
-
Create and activate a virtual environment:
python -m venv venv
- Windows:
venv\Scripts\activate
- macOS/Linux:
source venv/bin/activate
- Windows:
-
Install dependencies:
pip install -r requirements.txt
python gui_app.py- Click Select Image to choose an image file.
- Click Remove Background to process it.
- The result is saved automatically next to the original as
<filename>_no_bg.png.
python app.py <image_path>Example:
python app.py photo.jpg
# Output: photo_no_bg.pngremovee/
├── app.py # CLI entry point
├── gui_app.py # GUI entry point (tkinter)
├── requirements.txt
└── README.md
| Package | Purpose |
|---|---|
| rembg | AI-powered background removal |
| Pillow | Image loading, processing, and saving |
