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

image-resize

Resizes an image to specified dimensions. Use when you need to change image size, create thumbnails, or prepare images for specific display requirements.

How do I install this agent skill?

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

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill resizes images using a vendor-provided tool from the NPM registry. It allows processing images from external URLs, which creates a potential surface for indirect prompt injection.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

  • Runlayerpass

    1 file scanned · No issues

What does this agent skill do?

Image Resize

Resizes an image to a target width or height while optionally maintaining aspect ratio.

Command

npx agent-media@latest image resize --in <path> [options]

Inputs

OptionRequiredDescription
--inYesInput file path or URL
--widthNoTarget width in pixels
--heightNoTarget height in pixels
--outNoOutput path, filename or directory (default: ./)
--providerNoProvider to use (default: auto-detect)

At least one of --width or --height must be specified.

Output

Returns a JSON object with the resized image path:

{
  "ok": true,
  "media_type": "image",
  "action": "resize",
  "provider": "local",
  "output_path": "resized_123_abc.png",
  "mime": "image/png",
  "bytes": 45678
}

Examples

Resize to 800px width:

npx agent-media@latest image resize --in photo.jpg --width 800

Resize to exact dimensions:

npx agent-media@latest image resize --in photo.jpg --width 1024 --height 768

Resize with custom output:

npx agent-media@latest image resize --in image.png --width 500 --out ./resized

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-resize">View image-resize on skillZs</a>