UI はローカライズ済みです。スキルの紹介と説明文書は選択した言語へ AI が自動翻訳し、コード・コマンド・パス・専門用語は原文のままです。原作者の文書が優先されます。
スキルを探す
生産性・共同作業 · SKILL.md

crop-image

crop-image

Crop Image. Crop images by percentage-based coordinates. Triggers: crop image, trim image, resize image, cut image

Independent GitHub snapshot · Automated classification · Original documentation governs

スキルの説明

GitHub

name: crop-image description: "Crop Image. Crop images by percentage-based coordinates. Triggers: crop image, trim image, resize image, cut image" allowed-tools: Bash(curl *), WebFetch

Crop Image

Crop images using percentage-based coordinates and dimensions. Specify the crop region as percentages of the original image width and height for easy, resolution-independent cropping.

Quick Start

Requires an each::labs API key. Get one at eachlabs.ai.

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "crop-image",
    "version": "0.0.1",
    "input": {
      "image_url": "https://example.com/photo.jpg",
      "x_percent": 25,
      "y_percent": 16,
      "width_percent": 50,
      "height_percent": 50,
      "output_format": "png"
    }
  }'

Parameters

ParameterTypeDefaultDescription
height_percentnumber100Height as percentage of image height (0-100).
image_urlstring-The URL of the image to crop. Max file size: 9.5MB.
output_formatstringpngOutput format for the cropped image. Options: png, jpg, jpeg, webp
width_percentnumber100Width as percentage of image width (0-100).
x_percentnumber25X coordinate as percentage of image width (0-100).
y_percentnumber16Y coordinate as percentage of image height (0-100).

Examples

Center crop to 50%:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "crop-image",
    "version": "0.0.1",
    "input": {
      "image_url": "https://example.com/landscape.jpg",
      "x_percent": 25,
      "y_percent": 25,
      "width_percent": 50,
      "height_percent": 50
    }
  }'

Crop top-left quadrant:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "crop-image",
    "version": "0.0.1",
    "input": {
      "image_url": "https://example.com/group-photo.jpg",
      "x_percent": 0,
      "y_percent": 0,
      "width_percent": 50,
      "height_percent": 50,
      "output_format": "jpeg"
    }
  }'

Related Models

Documentation

保存したスキル