Install
openclaw skills install @catsmansion/ai-watermark-marginDrop the in-image watermark/signature that an AI image editor stamps on YOUR OWN ai-generated or ai-edited pictures, deterministically — by adding a blank margin before the edit and cropping it off after. No inpainting, no ML model, no third-party copyright watermark removal. Use when: 'AI edit leaves a watermark', 'remove AI signature', 'AI 修图水印', '去AI生成签名', '图片下方有水印', 'generator watermark'. Two tiny Pillow scripts: add_margin.py pads the canvas with whitespace (or black) so the generator's mark lands outside the content; crop_margin.py detects that uniform border and crops it away. Includes an ethics/compliance note: this only removes the generator's own visual stamp; you still disclose AI use per platform rules.
openclaw skills install @catsmansion/ai-watermark-marginAI image editors (image-to-image / inpainting tools, online generators) often stamp a small watermark, signature, or "made with X" text on the output — usually along an edge (most commonly the bottom). It looks cheap and you'd rather not have it baked into the file, even though you still disclose AI use separately.
This is a self-developed, deterministic technique (no model, no inpainting, no copyright-watermark removal):
Pad the canvas with a blank margin before sending the image to the AI; the generator drops its watermark into that margin; crop the margin off after the edit → the watermark is gone with zero reconstruction artifacts.
add_margin.py on your source image to add a ~10% blank (white) margin, typically at the bottom (where watermarks land). This is the image you hand to the AI.crop_margin.py on the AI output. It auto-detects the uniform blank border and crops it away, taking the watermark with it.python scripts/add_margin.py input.png output.png --percent 10 --side bottom --color white
--percent N : margin thickness as % of the relevant dimension (default 10).--side : bottom (default), top, uniform, left, right.--color : white (留白, default) or black (黑边). Hex like #000000 also accepted.python scripts/crop_margin.py ai_output.png cleaned.png
# dry-run to see detected margins without writing:
python scripts/crop_margin.py ai_output.png --report
--tol N : color tolerance for "is this border?" (default 12).--min-frac F : fraction of a row/column that must be border color (default 0.90).--max-percent P: safety cap — never crop more than P% per side (default 30).--fallback N : if detected border < N% per side, crop a fixed N% bottom margin instead.--report : print detected left/top/right/bottom crops, write nothing.crop_margin.py reports ~0 border, bump --fallback or re-pad with a larger percent.