image-resize
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 |
|---|---|---|
--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.
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
More from neversight/skills_feed
ai-image-generation
|
7react-best-practices
Provides React patterns for hooks, effects, refs, and component design. Covers escape hatches, anti-patterns, and correct effect usage. Must use when reading or writing React components (.tsx, .jsx files with React imports).
7ui-designer
Use when user needs visual UI design, interface creation, component systems, design systems, interaction patterns, or accessibility-focused user interfaces.
7python-env
Fast Python environment management with uv (10-100x faster than pip). Triggers on: uv, venv, pip, pyproject, python environment, install package, dependencies.
7typescript-best-practices
Provides TypeScript patterns for type-first development, making illegal states unrepresentable, exhaustive handling, and runtime validation. Must use when reading or writing TypeScript/JavaScript files.
6ai-marketing-videos
|
6