π¦ ClawHub
Gemini Watermark
by @h1bomb
Remove visible Gemini AI watermarks from images via reverse alpha blending. Use for cleaning Gemini-generated images, removing the star/sparkle logo watermar...
β‘ When to Use
π‘ Examples
Install Dependencies (one-time)
pip install Pillow numpyRecommended: use uv for faster, isolated installs
uv pip install Pillow numpy
Requires: Python β₯ 3.9. No Rust toolchain, no compiled binaries, no downloads.
Basic Usage
# Single image (auto-detect watermark, save as photo_cleaned.jpg)
python3 scripts/remove_watermark.py photo.jpgSpecify output path
python3 scripts/remove_watermark.py photo.jpg -o clean_photo.jpgBatch process directory
python3 scripts/remove_watermark.py ./input_dir -o ./output_dirForce removal without detection
python3 scripts/remove_watermark.py photo.jpg -o clean.jpg --force
π Tips & Best Practices
"No watermark detected" on a watermarked image
-t 0.1--forceImage looks distorted after removal
--force)--force-small or --force-large to match the correct size"Image too small" warning
The image dimensions are smaller than the watermark region. This typically means the image does not have a Gemini watermark.
ModuleNotFoundError: Pillow or numpy
pip install Pillow numpy
or
uv pip install Pillow numpy
TERMINAL
clawhub install gemini-watermark