jpskill.com
🎨 デザイン コミュニティ

gemini-watermark

Gemini AIが生成した画像から、目に見える星や輝きのロゴといった透かしを、アルファブレンディング処理で自然に除去し、大量の画像を一括でクリーンアップするSkill。

📜 元の英語説明(参考)

Remove visible Gemini AI watermarks from images via reverse alpha blending. Use for cleaning Gemini-generated images, removing the star/sparkle logo watermark, batch watermark removal.

🇯🇵 日本人クリエイター向け解説

一言でいうと

Gemini AIが生成した画像から、目に見える星や輝きのロゴといった透かしを、アルファブレンディング処理で自然に除去し、大量の画像を一括でクリーンアップするSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o gemini-watermark.zip https://jpskill.com/download/10458.zip && unzip -o gemini-watermark.zip && rm gemini-watermark.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/10458.zip -OutFile "$d\gemini-watermark.zip"; Expand-Archive "$d\gemini-watermark.zip" -DestinationPath $d -Force; ri "$d\gemini-watermark.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して gemini-watermark.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → gemini-watermark フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Gemini Watermark Remover

数学的に正確な逆アルファブレンドを使用して、生成された画像から目に見える Gemini AI のウォーターマーク(星/スパークルロゴ)を削除します。高速、オフライン、単一バイナリで、ランタイム依存関係はゼロです。

使用場面

  • AI生成画像からGeminiのウォーターマークを削除する
  • Geminiで生成された画像のディレクトリをバッチ処理する
  • 公開または共有する前に画像をクリーンアップする
  • パイプラインでウォーターマークの削除を自動化する

クイックスタート

インストール

オプション 1 — 推奨:ソースからビルド(Rustツールチェーンが必要)

cargo install gemini-watermark-removal
gemini-watermark --version

ソースからビルドすることで、実行前にコードを監査でき、サードパーティのプリビルドバイナリへの依存を回避できます。

オプション 2 — プリビルドバイナリ(サードパーティダウンロード)

セキュリティに関する注意: インストーラーは、独立したサードパーティである easynote-cc GitHub 組織からバイナリをダウンロードします。続行する前に、https://github.com/easynote-cc/gemini-watermark-removal でソースを確認してください。SHA256 検証は必須です。チェックサムファイルが見つからない場合、インストールは中止されます。

# インタラクティブ(ダウンロード前に確認を求めます)
./scripts/install.sh

# 非インタラクティブ(自動確認、例:スクリプト内)
./scripts/install.sh --yes

# 特定の固定バージョンをインストール
VERSION=v0.1.1 ./scripts/install.sh

サポートされているプラットフォーム:macOS(Apple Silicon / Intel)、Linux(x86_64 / ARM64)、Windows(x86_64、Git Bash / MSYS2経由)。

基本的な使い方

# 単一の画像(ウォーターマークを自動検出、photo_cleaned.jpgとして保存)
./scripts/gemini-watermark photo.jpg

# 出力パスを指定
./scripts/gemini-watermark photo.jpg -o clean_photo.jpg

# ディレクトリをバッチ処理
./scripts/gemini-watermark ./input_dir -o ./output_dir

# 検出なしで強制的に削除
./scripts/gemini-watermark photo.jpg -o clean.jpg --force

仕組み

Geminiは、アルファブレンドを使用して、半透明の白い星/スパークルロゴを生成された画像に追加します。

watermarked = alpha * 255 + (1 - alpha) * original

このツールは、方程式を逆にして元のピクセルを復元します。

original = (watermarked - alpha * 255) / (1 - alpha)

アルファマップ(ウォーターマークの透明度パターン)は、次の2つのサイズでバイナリに埋め込まれています。

  • 48x48、32pxマージン:いずれかの寸法が <= 1024px の画像の場合
  • 96x96、64pxマージン:両方の寸法が > 1024px の画像の場合

検出

削除の前に、3段階の検出アルゴリズムがウォーターマークが存在するかどうかを確認します。

  1. 空間NCC(50%の重み):アルファマップとの正規化相互相関
  2. 勾配NCC(30%の重み):Sobel演算子によるエッジ署名マッチング
  3. 分散分析(20%の重み):テクスチャ減衰検出

検出されたウォーターマークがない画像は、オリジナルを保護するために自動的にスキップされます。

CLIパラメータ

パラメータ 短縮形 デフォルト 説明
input (必須) 入力画像ファイルまたはディレクトリ
--output -o {name}_cleaned.{ext} 出力ファイルまたはディレクトリ
--force -f false 検出をスキップし、無条件に処理
--threshold -t 0.25 検出信頼度閾値(0.0-1.0)
--force-small false 48x48のウォーターマークサイズを強制
--force-large false 96x96のウォーターマークサイズを強制
--verbose -v false 詳細な出力を有効にする
--quiet -q false エラー以外のすべての出力を抑制

サポートされている形式

形式 読み込み 書き込み
JPEG (.jpg, .jpeg) はい はい(品質100)
PNG (.png) はい はい
WebP (.webp) はい はい
BMP (.bmp) はい はい

使用例

# 詳細な出力でウォーターマークを削除
./scripts/gemini-watermark photo.png -o clean.png -v

# 検出閾値を下げる(より敏感)
./scripts/gemini-watermark photo.jpg -t 0.15

# 画像の寸法に関係なく、大きなウォーターマークサイズを強制
./scripts/gemini-watermark photo.jpg --force-large -o clean.jpg

# バッチ処理、静音モード
./scripts/gemini-watermark ./gemini_images/ -o ./cleaned/ -q

# バッチ内のすべての画像で強制的に削除(検出なし)
./scripts/gemini-watermark ./images/ -o ./output/ --force

出力

  • 単一ファイル: 指定された -o パス、またはデフォルトで {name}_cleaned.{ext} に保存
  • ディレクトリ: 処理されたすべての画像を元のファイル名で出力ディレクトリに保存
  • スキップされた画像: 検出されたウォーターマークがない画像は処理されません(--force を除く)
  • 終了コード: 成功した場合は 0、いずれかの画像が失敗した場合は 1

トラブルシューティング

インストール中にダウンロードに失敗したか、チェックサムが見つかりません

リリースに SHA256 チェックサムファイルがない場合、インストーラーは未検証のバイナリから保護するために中止されます。代わりにソースからビルドしてください。

cargo install gemini-watermark-removal

サポートされていないプラットフォーム

cargo install は、Rustツールチェーンを備えた任意のプラットフォームで動作します。プリビルドバイナリインストーラーは、macOS、Linux、およびWindows(Git Bash / MSYS2)のみを対象としています。

ウォーターマークのある画像で「ウォーターマークが検出されませんでした」

  • 閾値を下げてみてください:-t 0.1
  • または、--force を使用して検出をスキップします

削除後に画像が歪んで見える

  • 画像にGeminiのウォーターマークがない可能性があります。検出を使用してください(--force は使用しないでください)
  • --force-small または --force-large を試して、正しいウォーターマークサイズに一致させます

「画像が小さすぎます」という警告

画像の寸法がウォーターマーク領域よりも小さいです。これは通常、画像にGeminiのウォーターマークがないことを意味します。

制限事項

  • 目に見えるウォーターマークのみ: このツールは、目に見える星/スパークルロゴのウォーターマークを削除します
  • SynthIDを削除できません: Googleの不可視ウォーターマーク(SynthID)は、生成中にピクセルレベルで埋め込まれており、元に戻すことはできません
  • 固定位置のみ: 標準の右下の位置にあるウォーターマークのみを処理します
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Gemini Watermark Remover

Remove the visible Gemini AI watermark (star/sparkle logo) from generated images using mathematically accurate reverse alpha blending. Fast, offline, single binary with zero runtime dependencies.

When to Use

  • Remove the Gemini watermark from AI-generated images
  • Batch process a directory of Gemini-generated images
  • Clean images before publishing or sharing
  • Automate watermark removal in pipelines

Quick Start

Install

Option 1 — Recommended: Build from source (Rust toolchain required)

cargo install gemini-watermark-removal
gemini-watermark --version

Building from source lets you audit the code before running it and avoids dependency on a third-party pre-built binary.

Option 2 — Pre-built binary (third-party download)

Security notice: The installer downloads a binary from the easynote-cc GitHub organization, which is an independent third party. Review the source at https://github.com/easynote-cc/gemini-watermark-removal before proceeding. SHA256 verification is mandatory; the install will abort if the checksum file is missing.

# Interactive (asks for confirmation before downloading)
./scripts/install.sh

# Non-interactive (auto-confirm, e.g. in a script)
./scripts/install.sh --yes

# Install a specific pinned version
VERSION=v0.1.1 ./scripts/install.sh

Supported platforms: macOS (Apple Silicon / Intel), Linux (x86_64 / ARM64), Windows (x86_64, via Git Bash / MSYS2).

Basic Usage

# Single image (auto-detect watermark, save as photo_cleaned.jpg)
./scripts/gemini-watermark photo.jpg

# Specify output path
./scripts/gemini-watermark photo.jpg -o clean_photo.jpg

# Batch process directory
./scripts/gemini-watermark ./input_dir -o ./output_dir

# Force removal without detection
./scripts/gemini-watermark photo.jpg -o clean.jpg --force

How It Works

Gemini adds a semi-transparent white star/sparkle logo to generated images using alpha blending:

watermarked = alpha * 255 + (1 - alpha) * original

This tool reverses the equation to recover the original pixels:

original = (watermarked - alpha * 255) / (1 - alpha)

The alpha maps (watermark transparency patterns) are embedded in the binary at two sizes:

  • 48x48 with 32px margin: for images where either dimension <= 1024px
  • 96x96 with 64px margin: for images where both dimensions > 1024px

Detection

Before removal, a three-stage detection algorithm checks if a watermark is present:

  1. Spatial NCC (50% weight): normalized cross-correlation with the alpha map
  2. Gradient NCC (30% weight): edge signature matching via Sobel operators
  3. Variance Analysis (20% weight): texture dampening detection

Images without detected watermarks are automatically skipped to protect originals.

CLI Parameters

Parameter Short Default Description
input (required) Input image file or directory
--output -o {name}_cleaned.{ext} Output file or directory
--force -f false Skip detection, process unconditionally
--threshold -t 0.25 Detection confidence threshold (0.0-1.0)
--force-small false Force 48x48 watermark size
--force-large false Force 96x96 watermark size
--verbose -v false Enable detailed output
--quiet -q false Suppress all non-error output

Supported Formats

Format Read Write
JPEG (.jpg, .jpeg) Yes Yes (quality 100)
PNG (.png) Yes Yes
WebP (.webp) Yes Yes
BMP (.bmp) Yes Yes

Usage Examples

# Remove watermark with verbose output
./scripts/gemini-watermark photo.png -o clean.png -v

# Lower detection threshold (more sensitive)
./scripts/gemini-watermark photo.jpg -t 0.15

# Force large watermark size regardless of image dimensions
./scripts/gemini-watermark photo.jpg --force-large -o clean.jpg

# Batch process, quiet mode
./scripts/gemini-watermark ./gemini_images/ -o ./cleaned/ -q

# Force removal on all images in batch (no detection)
./scripts/gemini-watermark ./images/ -o ./output/ --force

Output

  • Single file: Saves to specified -o path, or {name}_cleaned.{ext} by default
  • Directory: Saves all processed images to the output directory with original filenames
  • Skipped images: Images without detected watermarks are not processed (unless --force)
  • Exit code: 0 on success, 1 if any image fails

Troubleshooting

Download failed or checksum missing during install

If the SHA256 checksum file is absent for a release, the installer will abort to protect you from an unverified binary. Build from source instead:

cargo install gemini-watermark-removal

Unsupported platform

cargo install works on any platform with a Rust toolchain. The pre-built binary installer covers macOS, Linux, and Windows (Git Bash / MSYS2) only.

"No watermark detected" on a watermarked image

  • Try lowering the threshold: -t 0.1
  • Or use --force to skip detection

Image looks distorted after removal

  • The image may not have a Gemini watermark. Use detection (don't use --force)
  • Try --force-small or --force-large to match the correct watermark 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.

Limitations

  • Visible watermark only: This tool removes the visible star/sparkle logo watermark
  • Cannot remove SynthID: Google's invisible watermark (SynthID) is embedded at the pixel level during generation and cannot be reversed
  • Fixed positions only: Only handles watermarks in the standard bottom-right position