---
name: gemclean
description: Remove the visible Gemini or Nano Banana star watermark from the bottom-right corner of a local image when the user requests its removal. Use for Gemini 去水印 or 去掉右下角星标.
---

When installing from the web, save this file as `SKILL.md` and download [scripts/gemclean.py](https://gemclean.app/skills/gemclean/scripts/gemclean.py) at that relative path in the same skill folder. Resolve the script relative to the installed skill. Pass the image's absolute path. Example from the skill folder:

```sh
uv run --script scripts/gemclean.py remove "/project/hero.jpg" -o "/project/hero.clean.png" --json
```

If uv is unavailable, use Python 3.11+ with Pillow. If needed, install the script's declared Pillow version in a virtual environment dedicated to this skill. The script accepts still 8-bit PNG, JPEG and WebP images up to 20 MiB and 40 megapixels. It sends the bottom-right corner to https://gemclean.app. GemClean repairs the inner 320 × 320 pixels and may retain up to 512 × 512 source pixels privately for troubleshooting. On small inputs this can include the whole image. The repair area must be opaque.

Omit `-o` to save beside the input as `<stem>.clean.png`. An existing file is never replaced. On success, use the absolute `output` path in stdout. On failure, stderr includes an error code. For `rate_limited`, report the supplied `retry_after_seconds` when present.
