A Python command-line tool that adds timestamp watermarks to images using EXIF data.
- Extracts shooting date from EXIF metadata
- Supports multiple image formats (JPEG, PNG, BMP, TIFF, WebP)
- Customizable font size, color, and position
- Avoids Chinese characters to prevent encoding issues
- Automatically creates watermark directory
- Install Python dependencies:
pip install -r requirements.txtBasic usage:
python watermark_tool.py /path/to/imagesWith custom options:
python watermark_tool.py /path/to/images --font-size 48 --color black --position top-left--font-size: Font size for watermark text (default: 36)--color: Text color - white, black, red, blue, green (default: white)--position: Watermark position - top-left, top-right, bottom-left, bottom-right, center (default: bottom-right)
Processed images are saved in a new directory named original_directory_watermark within the input directory.
- JPEG/JPG
- PNG
- BMP
- TIFF
- WebP