jpskill.com
📦 その他 コミュニティ

image-remove-background

画像から背景を自動で削除し、人物や物を切り抜いて透明化することで、合成写真の作成や被写体の分離など、画像の加工を簡単に行えるようにするSkill。

📜 元の英語説明(参考)

Removes the background from an image, leaving the foreground subject with transparency. Use when you need to isolate subjects, create cutouts, or prepare images for compositing.

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

一言でいうと

画像から背景を自動で削除し、人物や物を切り抜いて透明化することで、合成写真の作成や被写体の分離など、画像の加工を簡単に行えるようにするSkill。

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

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

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

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

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

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して image-remove-background.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → image-remove-background フォルダができる
  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 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

画像背景除去

画像から背景を除去し、前景の被写体のみを透明にして残します。

コマンド

agent-media image remove-background --in <path> [options]

入力

オプション 必須 説明
--in はい 入力ファイルのパスまたは URL
--out いいえ 出力パス、ファイル名、またはディレクトリ (デフォルト: ./)
--provider いいえ 使用するプロバイダー (local, fal, replicate)

出力

処理された画像のパスを含む JSON オブジェクトを返します。

{
  "ok": true,
  "media_type": "image",
  "action": "remove-background",
  "provider": "fal",
  "output_path": "nobg_123_abc.png",
  "mime": "image/png",
  "bytes": 34567
}

ローカルファイルから背景を削除する:

agent-media image remove-background --in portrait.jpg

特定のプロバイダーを使用して背景を削除する:

agent-media image remove-background --in portrait.jpg --provider replicate

プロバイダー

local

Transformers.js を使用して CPU 上でローカルに実行します。API キーは不要です。

  • Xenova/modnet モデルを使用します
  • モデルは初回使用時にダウンロードされます (~25MB)
  • mutex lock failed エラーが表示される場合があります — 無視してください。"ok": true であれば出力は正しいです。
agent-media image remove-background --in portrait.jpg --provider local

fal

  • FAL_API_KEY が必要です
  • birefnet/v2 モデルを使用します

replicate

  • REPLICATE_API_TOKEN が必要です
  • birefnet モデルを使用します
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Image Remove Background

Removes the background from an image, leaving only the foreground subject with transparency.

Command

agent-media image remove-background --in <path> [options]

Inputs

Option Required Description
--in Yes Input file path or URL
--out No Output path, filename or directory (default: ./)
--provider No Provider to use (local, fal, replicate)

Output

Returns a JSON object with the processed image path:

{
  "ok": true,
  "media_type": "image",
  "action": "remove-background",
  "provider": "fal",
  "output_path": "nobg_123_abc.png",
  "mime": "image/png",
  "bytes": 34567
}

Examples

Remove background from local file:

agent-media image remove-background --in portrait.jpg

Remove background using specific provider:

agent-media image remove-background --in portrait.jpg --provider replicate

Providers

local

Runs locally on CPU using Transformers.js, no API key required.

  • Uses Xenova/modnet model
  • Models downloaded on first use (~25MB)
  • You may see a mutex lock failed error — ignore it, the output is correct if "ok": true
agent-media image remove-background --in portrait.jpg --provider local

fal

  • Requires FAL_API_KEY
  • Uses birefnet/v2 model

replicate

  • Requires REPLICATE_API_TOKEN
  • Uses birefnet model