Learn-skills.dev 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.
install
source · Clone the upstream repo
git clone https://github.com/NeverSight/learn-skills.dev
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/NeverSight/learn-skills.dev "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/skills-md/agntswrm/agent-media/image-resize" ~/.claude/skills/neversight-learn-skills-dev-image-resize && rm -rf "$T"
manifest:
data/skills-md/agntswrm/agent-media/image-resize/SKILL.mdsource content
Image Resize
Resizes an image to a target width or height while optionally maintaining aspect ratio.
Command
agent-media image resize --in <path> [options]
Inputs
| Option | Required | Description |
|---|---|---|
| Yes | Input file path or URL |
| No | Target width in pixels |
| No | Target height in pixels |
| No | Output path, filename or directory (default: ./) |
| No | Provider 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:
agent-media image resize --in photo.jpg --width 800
Resize to exact dimensions:
agent-media image resize --in photo.jpg --width 1024 --height 768
Resize with custom output:
agent-media image resize --in image.png --width 500 --out ./resized
Providers
- local (default) - Uses sharp library, no API key required