← 返回
未分类

crop-image-imageclaw

Use this skill when an AI agent needs to crop images through the deployed Crop Image service. Trigger this for URL-based cropping (`POST /crop`) and file-upload cropping (`POST /crop/upload`), especially when returning production URLs and handling API-level errors.
user_ce60c7a3
未分类 community v1.0.1 2 版本 100000 Key: 无需
★ 0
Stars
📥 109
下载
💾 1
安装
2
版本
#latest

概述

Crop Image Skill

Service Endpoints

  • API Base URL: https://api.imageclaw.net
  • Health: https://api.imageclaw.net/health
  • Crop by URL: https://api.imageclaw.net/crop
  • Crop by Upload: https://api.imageclaw.net/crop/upload
  • Docs: https://api.imageclaw.net/docs

Execute Crop by URL

  1. Validate input fields:
    • url must be a reachable image URL.
    • width and height must be integers in [1, 4096].
  1. Call endpoint:
curl -sS -X POST "https://api.imageclaw.net/crop" \
  -H "content-type: application/json" \
  -d '{
    "url": "https://picsum.photos/800/600",
    "width": 256,
    "height": 256
  }'
  1. Return response fields:
    • cropped_url
    • original_size
    • face_detected

Execute Crop by Upload

  1. Prefer upload mode for user-provided local files.
  1. Call endpoint:
curl -sS -X POST "https://api.imageclaw.net/crop/upload" \
  -F "file=@/absolute/path/to/photo.jpg" \
  -F "width=256" \
  -F "height=256"
  1. Return response fields:
    • cropped_url
    • original_size
    • face_detected

Error Handling

  • HTTP 400: invalid image source or decode failure
  • HTTP 422: validation failure (invalid URL, invalid width/height)
  • HTTP 500: service or configuration failure

When failure occurs:

  1. Return the original status code and detail.
  2. Ask caller to change input for 400/422.
  3. Retry only for transient 500 or network timeout.

Success Example

{
  "cropped_url": "https://crop.imagebee.net/crops/1772761350_b8050bd6ec26.jpg",
  "original_size": [800, 600],
  "face_detected": false
}

Failure Example

{
  "detail": "Not an image: content-type is application/json"
}

版本历史

共 2 个版本

  • v1.0.1 Initial release 当前
    2026-04-13 12:59 安全 安全
  • v1.0.0 Initial release
    2026-04-13 12:56 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 435 📥 117,947
design-media

UI/UX Pro Max

xobi667
提供 UI/UX 设计智能与实现指导,帮助打造精美界面。适用于 UI 设计、UX 流程、信息架构、视觉风格、设计系统/标记、组件规格、文案/微文案、无障碍及前端 UI(HTML/CSS/JS、React、Next.js、Vue、Svelte
★ 227 📥 48,933
design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 335 📥 94,758