> ## Documentation Index
> Fetch the complete documentation index at: https://learn.workflow.dog/llms.txt
> Use this file to discover all available pages before exploring further.

# Rotate Image

> Rotate an image clockwise and choose the color behind exposed corners.

**Rotate Image** rotates an image by any number of degrees. Positive angles
rotate clockwise.

| Direction | Field             | Type   | Description                                                         |
| --------- | ----------------- | ------ | ------------------------------------------------------------------- |
| Input     | **Image**         | File   | The image to rotate.                                                |
| Input     | **Angle**         | Number | Rotation in degrees. Defaults to `0`.                               |
| Input     | **Background**    | String | Color for newly exposed areas. Defaults to transparent `#00000000`. |
| Output    | **Rotated Image** | File   | The rotated image, preserving the input name and MIME type.         |

Right-angle rotations rearrange the original pixels without exposed triangular
corners. Other angles expand the canvas and fill those corners with
**Background**.

<Note>
  Formats without alpha transparency cannot preserve a transparent background.
  Choose an opaque color or convert to a transparency-capable format such as
  PNG.
</Note>
