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.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "image-resize" with this command: npx skills add agntswrm/agent-media/agntswrm-agent-media-image-resize

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

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.

Automation

image-remove-background

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

audio-transcribe

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

video-generate

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

image-edit

No summary provided by upstream source.

Repository SourceNeeds Review