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

image-crop

画像の特定箇所を中心にして、指定したサイズに切り抜くことで、サムネイル作成やアスペクト比調整など、用途に合わせた画像の一部を抽出するSkill。

📜 元の英語説明(参考)

Crops an image to specified dimensions around a focal point. Use when you need to extract a portion of an image, create thumbnails with custom positioning, or prepare images for specific aspect ratios.

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

一言でいうと

画像の特定箇所を中心にして、指定したサイズに切り抜くことで、サムネイル作成やアスペクト比調整など、用途に合わせた画像の一部を抽出するSkill。

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

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

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

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

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

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

Image Crop

画像を、設定可能な焦点ポイントを中心として、指定された寸法に切り抜きます。切り抜き領域は、画像の境界内に留まりながら、焦点ポイントを中心とするように計算されます。

Command

agent-media image crop --in <path> --width <px> --height <px> [options]

Inputs

Option Required Description
--in Yes 入力ファイルのパスまたは URL
--width Yes 切り抜き領域の幅(ピクセル単位)
--height Yes 切り抜き領域の高さ(ピクセル単位)
--focus-x No 焦点ポイントの X 座標 0-100 (デフォルト: 50 = 中央)
--focus-y No 焦点ポイントの Y 座標 0-100 (デフォルト: 50 = 中央)
--dpi No 出力の DPI/密度 (デフォルト: 300)
--out No 出力パス、ファイル名、またはディレクトリ (デフォルト: ./)
--provider No 使用するプロバイダー (デフォルト: local)

Output

切り抜かれた画像のパスを含む JSON オブジェクトを返します。

{
  "ok": true,
  "media_type": "image",
  "action": "crop",
  "provider": "local",
  "output_path": "cropped_123_abc.png",
  "mime": "image/png",
  "bytes": 45678
}

Examples

中央(デフォルトの焦点ポイント)を中心に 800x600 に切り抜きます。

agent-media image crop --in photo.jpg --width 800 --height 600

左上領域(左から 20%、上から 30%)に焦点ポイントを設定して切り抜きます。

agent-media image crop --in photo.jpg --width 800 --height 600 --focus-x 20 --focus-y 30

URL からカスタム出力で切り抜きます。

agent-media image crop --in https://example.com/image.jpg --width 1024 --height 768 --out ./output

Providers

  • local (デフォルト) - Sharp ライブラリを使用、API キーは不要
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Image Crop

Crops an image to specified dimensions centered on a configurable focal point. The crop region is calculated to center on the focal point while staying within image bounds.

Command

agent-media image crop --in <path> --width <px> --height <px> [options]

Inputs

Option Required Description
--in Yes Input file path or URL
--width Yes Width of crop area in pixels
--height Yes Height of crop area in pixels
--focus-x No Focal point X position 0-100 (default: 50 = center)
--focus-y No Focal point Y position 0-100 (default: 50 = center)
--dpi No DPI/density for output (default: 300)
--out No Output path, filename or directory (default: ./)
--provider No Provider to use (default: local)

Output

Returns a JSON object with the cropped image path:

{
  "ok": true,
  "media_type": "image",
  "action": "crop",
  "provider": "local",
  "output_path": "cropped_123_abc.png",
  "mime": "image/png",
  "bytes": 45678
}

Examples

Crop to 800x600 centered (default focal point):

agent-media image crop --in photo.jpg --width 800 --height 600

Crop with focal point at top-left area (20% from left, 30% from top):

agent-media image crop --in photo.jpg --width 800 --height 600 --focus-x 20 --focus-y 30

Crop from URL with custom output:

agent-media image crop --in https://example.com/image.jpg --width 1024 --height 768 --out ./output

Providers

  • local (default) - Uses Sharp library, no API key required