skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
agntswrm/agent-media160 installs

image-crop

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.

How do I install this agent skill?

npx skills add https://github.com/agntswrm/agent-media --skill image-crop
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill provides instructions for cropping images using the agent-media CLI tool. It is safe and functions as described for image processing tasks.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

  • Runlayerpass

    1 file scanned · No issues

  • ZeroLeakspass

    Score: 93/100 · 2 sections analyzed

What does this agent skill do?

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

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

Inputs

OptionRequiredDescription
--inYesInput file path or URL
--widthYesWidth of crop area in pixels
--heightYesHeight of crop area in pixels
--focus-xNoFocal point X position 0-100 (default: 50 = center)
--focus-yNoFocal point Y position 0-100 (default: 50 = center)
--dpiNoDPI/density for output (default: 300)
--outNoOutput path, filename or directory (default: ./)
--providerNoProvider 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):

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

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

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

Crop from URL with custom output:

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

Providers

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

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/agntswrm/agent-media/image-crop">View image-crop on skillZs</a>