scale_image
Resize an image to exact pixel dimensions by setting target width and height, with optional cubic, linear, or no interpolation. Use it to prepare images for specific size requirements.
Instructions
Scale an image to exact pixel dimensions.
Parameters:
width: Target width in pixels
height: Target height in pixels
interpolation: "cubic" (default), "linear", "none"
image_index: Target image index (default 0)
Returns: {status, width, height}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| height | Yes | ||
| image_index | No | ||
| interpolation | No | cubic |