Token导航 LogoToken导航TokenDH.com
开发只读github未标认证来源可访问许可证需确认审计提醒

watermark-removal水印去除

Agent Skill

watermark-removal 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,634

周安装

112

GitHub Stars

公开资料未说明

下载量

923
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:watermark-removal(水印去除)
来源仓库:https://github.com/horace4444/extend-my-claude-code
仓库路径:skills/watermark-removal
安装命令:
npx skills add https://github.com/horace4444/extend-my-claude-code --skill watermark-removal
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/horace4444/extend-my-claude-code --skill watermark-removal

简介

watermark-removal 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态和协作事项进行整理。
  • 通过 npx skills add 命令安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网或命令执行。
  • 注意该技能当前无原始 SKILL.md 内容可参考,实际功能以仓库实现为准。

SKILL.md

Universal Watermark Removal

Remove watermarks from ANY image source using intelligent detection and proven methods. Smart routing: automatically detects Google SynthID and uses the proven aggressive method, falls back to ML inpainting for unknown watermark types.

Quick Start

Single Image - Smart Auto-Detection (Recommended)

# Smart detection: Google SynthID → aggressive method (proven), Unknown → inpaint (ML)
python .claude/skills/watermark-removal/scripts/remove-watermark.py \
  input.png \
  output.png

Single Image - Preserve Dimensions (Force ML)

# Force ML inpainting even for Google SynthID (preserves exact dimensions)
python .claude/skills/watermark-removal/scripts/remove-watermark.py \
  input.png \
  output.png \
  --method inpaint

Batch Processing (Get User Approval First!)

⚠️ IMPORTANT: Always ask user before batch processing, especially with crop/aggressive methods that alter dimensions.

# Recommended: Preserves dimensions
python .claude/skills/watermark-removal/scripts/batch-process.py \
  /path/to/input-dir \
  /path/to/output-dir \
  --method inpaint

# Alternative: Fast but crops 120px (requires user approval)
python .claude/skills/watermark-removal/scripts/batch-process.py \
  /path/to/input-dir \
  /path/to/output-dir \
  --method aggressive

Smart Detection System ⭐ NEW

The skill automatically detects Google SynthID watermarks and routes to the optimal removal method:

Google SynthID Detection

Characteristics analyzed:

  • RGBA mode (PNG format with alpha channel)
  • Large dimensions (>1500px width and height)
  • Typical Google AI aspect ratios (1.83, 1.0, 1.5, 1.78 with 10% tolerance)
  • Automatic corner detection for watermark location

Smart routing logic:

  1. If Google SynthID detected → Uses aggressive method (proven to work perfectly)

- Crops 120px from detected corner - Removes alpha channel watermarking - Paints over any remnants - Works 100% reliably on Google AI images

  1. If unknown/other watermark → Uses inpaint method (ML-based)

- Preserves exact dimensions - Uses OpenCV Navier-Stokes algorithm - Works on any watermark type

Override Default Behavior

# Force ML inpainting even for Google SynthID (preserves dimensions)
python scripts/remove-watermark.py input.png output.png --method inpaint

# Force aggressive method for non-Google watermarks
python scripts/remove-watermark.py input.png output.png --method aggressive

# Disable auto-detection (assume bottom-right corner)
python scripts/remove-watermark.py input.png output.png --no-detect

Methods

Inpaint Method (Best Quality) ⭐ NEW

What it does: ML-based inpainting with automatic watermark detection

Features:

  • Automatically detects watermark location (any corner)
  • Uses OpenCV's Navier-Stokes inpainting algorithm
  • Intelligently fills watermark area with surrounding patterns
  • Works on ANY watermark type (not just Google SynthID)

Pros:

  • Highest quality results
  • Preserves exact dimensions
  • Works on watermarks in any corner
  • Handles complex backgrounds intelligently
  • Universal - works on all watermark types

Cons:

  • Requires OpenCV installation (pip install opencv-python)
  • Slightly slower than crop method
  • May need parameter tuning for very large watermarks

Use when:

  • You need the best possible quality
  • Watermark is on complex/detailed background
  • Preserving exact dimensions is critical
  • Working with non-Google watermarks

Aggressive Method (Fast & Reliable)

What it does: Auto-detects corner, crops 120px, removes alpha channel, paints remnants

Pros:

  • Fast and reliable
  • Automatic detection of watermark corner
  • Handles RGBA images properly
  • Good for batch processing

Cons:

  • Reduces image size by 120px
  • May crop content near edges

Use when:

  • Processing many images quickly (default for batch)
  • Size reduction is acceptable
  • Google SynthID watermarks

Crop Method

What it does: Auto-detects and crops watermark corner

Pros:

  • Fastest method
  • Automatic detection
  • Minimal processing

Cons:

  • May leave watermark remnants
  • Doesn't handle alpha channel watermarking

Use when:

  • Speed is top priority
  • Quick preview needed

Paint Method

What it does: Paints over watermark without cropping (no auto-detection)

Pros:

  • Preserves dimensions
  • Simple approach

Cons:

  • Assumes bottom-right corner only
  • May leave visible artifacts
  • Less reliable than inpaint

Use when:

  • Simple watermarks on solid backgrounds
  • Legacy compatibility

Important Guidelines

Dimension Preservation Priority

BALANCE DOMAIN KNOWLEDGE WITH DIMENSION PRESERVATION

  1. Smart default behavior:

- Google SynthID detected → aggressive method (proven perfect, crops 120px) - Unknown watermark → inpaint method (preserves dimensions)

  1. User override available:

- Force dimension preservation with --method inpaint flag - Force cropping with --method aggressive flag

  1. User approval required for batch cropping:

- If processing multiple Google SynthID images with aggressive method - Explain that method will reduce image size by 120px - Get explicit confirmation - Show before/after dimensions

Batch Processing Protocol

NEVER start batch processing without user confirmation:

  1. Show what will happen:

- Number of images to process - Method to be used - Whether dimensions will be preserved or altered

  1. Get explicit approval:

- "I will process X images using [method]. This [will/will not] alter dimensions. Proceed?"

  1. Prefer non-destructive:

- Default to inpaint for batch processing - Only use aggressive if user specifically requests speed over quality

Workflow

1. Identify Watermarked Images

Common watermark types:

  • Google SynthID: Small star/sparkle icon in corner
  • Stock photos: Logo or text overlay
  • AI services: Corner badges (Midjourney, DALL-E)
  • Camera watermarks: Date/time stamps

2. Choose Method

Smart Default Workflow (NEW):

  1. Run script without --method flag - Smart detection automatically routes to best method
  2. Google SynthID detected → Uses aggressive method (proven perfect)
  3. Unknown watermark → Uses inpaint method (ML-based, preserves dimensions)
  4. Override with --method flag if needed

Method Selection Guide:

  • Smart auto (recommended): No flag (detects Google SynthID → aggressive, else → inpaint)
  • Force dimension preservation: --method inpaint (ML-based, works on any watermark)
  • Force Google method: --method aggressive (crops 120px, perfect for SynthID)
  • Maximum speed: --method crop (fastest, crops but may leave remnants)
  • Legacy: --method paint (basic, preserves dimensions but less reliable)

3. Process Images

Smart auto-detection (recommended):

python scripts/remove-watermark.py input.png output.png

Force dimension preservation:

python scripts/remove-watermark.py input.png output.png --method inpaint

Fast batch processing:

python scripts/batch-process.py ./input ./output --method aggressive

Disable auto-detection (force bottom-right):

python scripts/remove-watermark.py input.png output.png --method inpaint --no-detect

4. Verify Results

  • Check output images for clean corners
  • Verify no important content was cropped
  • Confirm watermark fully removed

Command Reference

remove-watermark.py

python scripts/remove-watermark.py INPUT OUTPUT [OPTIONS]

Arguments:
  INPUT                 Input image path
  OUTPUT                Output image path

Options:
  --method {crop|inpaint}   Removal method (default: crop)
  --size INT               Watermark size in pixels (default: 60)

batch-process.py

python scripts/batch-process.py INPUT_DIR OUTPUT_DIR [OPTIONS]

Arguments:
  INPUT_DIR             Directory with images to process
  OUTPUT_DIR            Directory for cleaned images

Options:
  --method {crop|inpaint}   Removal method (default: crop)
  --pattern PATTERN        File pattern to match (default: *.png)
  --size INT               Watermark size in pixels (default: 60)

Examples

Example 1: Website Images

Scenario: User has 3 Google AI images for website, watermarks need removal

# Batch process all PNG images
python scripts/batch-process.py \
  ./public/images \
  ./public/images-clean \
  --method crop \
  --pattern "*.png"

Output:

Found 3 images to process
Input: ./public/images
Output: ./public/images-clean
Method: crop

[1/3] Processing: ad-design-bedroom.png
   ✅ Saved to: ad-design-bedroom.png
[2/3] Processing: ad-design-kitchen.png
   ✅ Saved to: ad-design-kitchen.png
[3/3] Processing: ad-designs-bathroom.png
   ✅ Saved to: ad-designs-bathroom.png

✅ Successfully processed: 3/3

Example 2: Preserve Exact Dimensions

Scenario: Client needs exact 1920x1080 image, can't crop

python scripts/remove-watermark.py \
  hero-image.png \
  hero-image-clean.png \
  --method inpaint

Example 3: Larger Watermark

Scenario: Watermark is bigger than usual (70px)

python scripts/batch-process.py \
  ./images \
  ./images-clean \
  --method crop \
  --size 70

Technical Details

See references/synthid-watermark.md for:

  • SynthID watermark specifications
  • Method comparison details
  • Edge cases and considerations
  • Legal/ethical guidelines

Dependencies

Required:

  • Python 3.7+
  • Pillow (PIL): pip install Pillow
  • NumPy: pip install numpy

Optional (for ML inpainting):

  • OpenCV: pip install opencv-python

Install all dependencies:

pip install Pillow numpy opencv-python

Note: The inpaint method requires OpenCV. Other methods work without it.

Tips

Performance:

  • Crop method is 5-10x faster than inpaint
  • For 100+ images, use crop method

Quality:

  • Save with quality=95 to minimize compression
  • PNG format preserves quality better than JPEG

Backup:

  • Always keep original watermarked images
  • Process copies, not originals

Testing:

  • Test on one image before batch processing
  • Verify watermark size with --size flag if needed

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.06%
按下载量换算351

Claude

27.22%
按下载量换算251

Cursor

18.95%
按下载量换算175

Gemini CLI

9.35%
按下载量换算86

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills