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-upload cropping (`POST /crop/upload`), especially when returning production URLs and handling API-level errors.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "crop-image" with this command: npx skills add effimail/crop-image

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.

  2. 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"
}

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

FastAPI Production Engineering

Build, deploy, and scale production-grade FastAPI apps with async, type-safe design, structured errors, JWT auth, async ORM, auto docs, tests, and observabil...

Registry SourceRecently Updated
5340Profile unavailable
Automation

Rrbdagent

OpenClaw skill for RRBD Admin项目。当用户需要通过自然语言对话执行API调用、自动化操作或系统任务时调用。

Registry SourceRecently Updated
2420Profile unavailable
Automation

Nango API Integration

Connect AI agents to 700+ external APIs using Nango. Handles OAuth, authentication flows, and tool calling for any API. Use when integrating agents with exte...

Registry SourceRecently Updated
2580Profile unavailable
Automation

API Hunter

Automatically searches and compiles reports of free APIs based on specific functional requirements.

Registry SourceRecently Updated
2630Profile unavailable