skills/image-resize/SKILL.md
Resizes an image to specified dimensions. Use when you need to change image size, create thumbnails, or prepare images for specific display requirements.
npx skillsauth add agntswrm/agent-media image-resizeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Resizes an image to a target width or height while optionally maintaining aspect ratio.
npx agent-media@latest image resize --in <path> [options]
| Option | Required | Description |
|--------|----------|-------------|
| --in | Yes | Input file path or URL |
| --width | No | Target width in pixels |
| --height | No | Target height in pixels |
| --out | No | Output path, filename or directory (default: ./) |
| --provider | No | Provider to use (default: auto-detect) |
At least one of --width or --height must be specified.
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
}
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
data-ai
Generates video from text prompts or animates static images. Use when you need to create videos from descriptions, animate images, or produce video content using AI.
development
Upscales an image using AI super-resolution to increase resolution with detail generation. Use when you need to enlarge images, improve low-resolution photos, or prepare images for large-format display.
content-media
Removes the background from an image, leaving the foreground subject with transparency. Use when you need to isolate subjects, create cutouts, or prepare images for compositing.
data-ai
Generates an image from a text prompt using AI models. Use when you need to create images from descriptions, generate artwork, or produce visual content from text.