resize_image
Resize images to custom dimensions or named presets while preserving the original format and aspect ratio.
Instructions
Resize an image to custom dimensions or a named preset. Preserves the original format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | Absolute path to the source image file | |
| width | No | Target width in pixels | |
| height | No | Target height in pixels | |
| preset | No | Named size preset (overrides width/height) | |
| lock_aspect_ratio | No | Keep aspect ratio (default true) | |
| output_path | No | Where to save the output (defaults to same directory as input) |