Apply an ordered image pipeline
image_transformRun multiple image transformations—resize, crop, rotate, watermark, background removal, and more—in a single call, so the image is transferred once and processed entirely server-side.
Instructions
Run several operations in one call, in order. Prefer this over chaining single-step tools: it transfers the image once and applies every step server-side. Operations: auto_orient, resize, crop, rotate, flip, sharpen, blur, smart_crop, watermark_text, watermark_image, background_remove, feather.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | http(s) URL to fetch (disabled by default). | |
| path | No | Path to the image, inside an allowed input root. | |
| quality | No | Lossy quality for the final encode. | |
| lossless | No | Use a lossless encode where supported. | |
| operations | Yes | Ordered list of operations, each with an 'op' field. | |
| base64_data | No | Inline base64 image, optionally a data: URI. | |
| output_name | No | Override the output filename. | |
| return_image | No | Embed the result inline for vision clients. | |
| output_format | No | Output codec; defaults to the input format. | |
| return_base64 | No | Include base64 in the JSON result. | |
| strip_metadata | No | Strip EXIF/GPS metadata from the output. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| input | No | Summary of the source image, when one was read. | |
| notes | No | ||
| steps | No | ||
| metrics | No | Operation-specific measurements (e.g. comparison scores). | |
| outputs | No | ||
| operation | Yes | Tool that produced this result. | |
| sizeChange | No | ||
| inlineImageIncluded | No | True when an image block accompanies this result for vision-capable clients. |