compress_image
Compress an image to reduce file size, optionally capping dimensions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format (jpeg, png, webp, ...). Defaults to source format. | |
| quality | No | Compression quality 1-100. | |
| max_width | No | Optionally cap the width in pixels. | |
| max_height | No | Optionally cap the height in pixels. | |
| source_url | No | Public URL of the image. | |
| file_base64 | No | Base64-encoded image. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||