Rotate or flip an image
image_rotateFix image orientation by rotating to any angle, mirroring horizontally or vertically, and applying EXIF orientation so pixels match viewer display.
Instructions
Rotate by any angle, mirror horizontally or vertically, and/or apply the EXIF orientation so the pixels match what a viewer shows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | http(s) URL to fetch. Disabled unless PICTOR_ALLOW_NET_FETCH=true. | |
| flip | No | Mirror the image: horizontal, vertical or both. | |
| path | No | Path to the image, relative to an allowed input root (or absolute inside one). | |
| angle | No | Degrees counter-clockwise. | |
| expand | No | Grow the canvas so rotation does not clip corners. | |
| quality | No | Lossy quality 1-100 (higher is better quality and larger). | |
| background | No | RGBA fill for exposed areas. | |
| auto_orient | No | Apply the EXIF orientation tag first. | |
| base64_data | No | Inline image bytes as base64, optionally a data: URI. | |
| output_name | No | Override the output filename (a safe name is derived if omitted). | |
| return_image | No | Embed the resulting image inline so vision-capable clients can see it. | |
| output_format | No | Output codec: jpeg, png, webp, avif, tiff, gif, bmp, ico, jpeg2000, qoi, ppm. Defaults to the input format. | |
| return_base64 | No | Include the base64 payload in the JSON result for clients without file access. | |
| strip_metadata | No | Remove EXIF/GPS/ICC metadata. Defaults to the server setting (on). |
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. |