resize_image
Resize images to custom width, height, or longest edge. Preserve aspect ratio to fit within a box without distortion.
Instructions
Resize an image.
Give width, height, both, or max_edge (longest side, aspect preserved). With preserve_aspect and both dimensions, the image is fitted inside the box rather than distorted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| height | No | ||
| backend | No | ||
| quality | No | ||
| max_edge | No | ||
| input_path | Yes | ||
| output_path | Yes | ||
| preserve_aspect | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |