← 返回
内容创作

Crop Image

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-upl...
当AI代理需要通过已部署的图像裁剪服务裁剪图片时使用此技能。适用于URL裁剪(`POST /crop`)和文件上传...
effimail
内容创作 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 680
下载
💾 6
安装
1
版本
#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"
}

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-19 10:08 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 857 📥 199,436
content-creation

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,033
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,434