resize_image
Resize images by setting new width, height, or scale factor. Maintain aspect ratio for proportional adjustments.
Instructions
Resize the image by dimensions or scale factor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Scale factor (e.g., 0.5 for half size) | |
| width | No | New width (or None to calculate from height) | |
| height | No | New height (or None to calculate from width) | |
| image_id | Yes | ID of the image to resize | |
| maintain_aspect | No | Maintain aspect ratio |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Image width in pixels | |
| height | Yes | Image height in pixels | |
| message | Yes | Status message | |
| image_id | Yes | Unique identifier for the captured image |