rotate
Rotate images clockwise, save to new file, with options to expand canvas or crop overflow.
Instructions
Rotate an image clockwise by a number of degrees and write it to a NEW file (source unchanged). With expand=true (the default) the canvas is enlarged so no corners are clipped; set expand=false to keep the original canvas size and crop the overflow. Returns the output path and the angle applied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | Yes | Output image path. A new file is created; the source is left untouched. | |
| path | Yes | Source image path. | |
| expand | No | If true (default), grow the canvas to fit the rotated image; if false, keep original size and crop overflow. | |
| degrees | Yes | Rotation angle in degrees, clockwise. |