Back to Projects
Project

Watermark Applier

2025Present Open Source

A smart Python script that intelligently applies watermarks to images — auto-positioning, auto-color, auto-opacity.

Python Python Open Source
Repository

About this project

A Python script that applies watermarks to images with actual intelligence. Instead of blindly pasting a logo, it analyzes the background brightness and complexity to find the calmest area, automatically inverts the watermark color (white/black) based on the background, and adjusts opacity for readability. Supports recursive folder processing and maintains the original directory hierarchy in output.

Key Features
Smart positioning — analyzes pixel chaos (std deviation) to find the calmest corner
Fallback logic — if bottom-right is too busy, compares with bottom-center and picks the better one
Auto-inversion — detects light backgrounds and flips watermark to dark for contrast
Dynamic opacity — adjusts transparency based on background brightness
Recursive folder processing — maintains original directory hierarchy in output
Customizable padding, size, inversion threshold, and chaos sensitivity
PreviousNext