Skip to content

codingsupply/bgremove

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Background Remover Batch

Python utility for removing image backgrounds in bulk from a single file or an entire folder and exporting transparent PNGs.

Features

  • processes one file or a whole directory
  • keeps filenames predictable
  • writes transparent PNG outputs
  • supports nested folders when scanning a directory
  • works well for product mockups, icon assets, and quick cutout batches

Requirements

  • Python 3.10+
  • rembg
  • Pillow

Install

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Usage

Process a folder called input/ and write results into output/:

python remove_background.py input --output output

Process a single file:

python remove_background.py ./input/example.jpg --output ./output

Use a specific rembg model:

python remove_background.py ./input --output ./output --model u2net

Notes

  • The repository ignores local input/, output/, and venv/ folders so sample images and generated assets do not bloat Git history.
  • Outputs are always saved as PNG so the alpha channel is preserved.

About

Batch background removal utility for images, built with Python and rembg.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages