# Rotate image

## Rotate the output image by either an explicit angle.

<mark style="color:blue;">`GET`</mark> `https://gateway.omnidata.xyz/ipfs/:cid?rotate=180`

If an angle is provided, it is converted to a valid positive degree rotation. For example, `-450` will produce a 270deg rotation.

If no angle is provided, it is determined from the EXIF data. Mirroring is supported and may infer the use of a flip operation.

#### Path Parameters

| Name                                  | Type   | Description       |
| ------------------------------------- | ------ | ----------------- |
| cid<mark style="color:red;">\*</mark> | String | The IPFS hash/cid |

#### Query Parameters

| Name                                     | Type   | Description                             |
| ---------------------------------------- | ------ | --------------------------------------- |
| rotate<mark style="color:red;">\*</mark> | String | The angle of rotation. (default `auto`) |
