Loading...
Loading...
Resizes an image to specified dimensions. Use when you need to change image size, create thumbnails, or prepare images for specific display requirements.
npx skill4agent add agntswrm/agent-media image-resizeagent-media image resize --in <path> [options]| 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) |
--width--height{
"ok": true,
"media_type": "image",
"action": "resize",
"provider": "local",
"output_path": "resized_123_abc.png",
"mime": "image/png",
"bytes": 45678
}agent-media image resize --in photo.jpg --width 800agent-media image resize --in photo.jpg --width 1024 --height 768agent-media image resize --in image.png --width 500 --out ./resized