OverlayBatch watches a folder for new images, resizes them to a fixed output size, applies a transparent PNG overlay, and saves the result as final PNG files.
- Watches a folder and processes images automatically
- Resizes and center-crops each image to a consistent canvas
- Applies the same transparent overlay to every output image
- Supports continuous watching or a single batch run
- Python 3.9+
pip
- Clone the repository
git clone https://github.com/webjocke/OverlayBatch.git cd OverlayBatch - Install the dependency
pip install -r requirements.txt
Run the watcher with the default project folders:
python3 overlaybatch.pyDefault behavior:
- Reads new images from
input/ - Writes finished PNG files to
output/ - Uses
overlay.pngas the overlay - Produces images at
800x600
Run a single batch instead of a continuous watcher:
python3 overlaybatch.pyExample with custom folders and dimensions:
python3 overlaybatch.py \
--watch-folder incoming \
--output-folder exported \
--overlay-image overlay.png \
--width 1200 \
--height 1200 \
--keep-originals- Supported formats include JPG, JPEG, PNG, WEBP, BMP, and TIFF
- Output files keep the original filename stem and are saved as
.png
Distributed under the MIT License. See LICENSE for more information.
