Rotate
Rotate the image anti-clockwise by an angle.
info
rotate can be combined with all other options.
| Transformation | Examples | Description |
|---|---|---|
rotate=angle | rotate=90&resize=100,100![]() | request an image rotated 90 degrees anti-clockwise |
rotate=angle&resize=width,height | rotate=180&resize=100,100 ![]() | request a 180 degrees rotated resized image |
The transformation parameters are described below:-
| Parameter | Description |
|---|---|
angle | can be 90, 180 or 270 |
Examples
Rotate parameters go on the asset's on-demand image URL, like every other transformation, and combine with other options using &:
https://cdn.filespin.io/api/v1/assets/{ASSET_ID}/conversions?rotate=90&resize=100,100
| URL | Result |
|---|---|
https://cdn.filespin.io/api/v1/assets/{ASSET_ID}/conversions?rotate=90&resize=100,100 | rotated 90 degrees anti-clockwise, resized to fit 100x100 |
https://cdn.filespin.io/api/v1/assets/{ASSET_ID}/conversions?rotate=180&resize=100,100 | rotated 180 degrees, resized to fit 100x100 |

