Skip to main content

Rotate

Rotate the image anti-clockwise by an angle.

info

rotate can be combined with all other options.

TransformationExamplesDescription
rotate=anglerotate=90&resize=100,100Image rotated 90 degrees anti-clockwiserequest an image rotated 90 degrees anti-clockwise
rotate=angle&resize=width,heightrotate=180&resize=100,100 Image rotated 180 degreesrequest a 180 degrees rotated resized image

The transformation parameters are described below:-

ParameterDescription
anglecan 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

URLResult
https://cdn.filespin.io/api/v1/assets/{ASSET_ID}/conversions?rotate=90&resize=100,100rotated 90 degrees anti-clockwise, resized to fit 100x100
https://cdn.filespin.io/api/v1/assets/{ASSET_ID}/conversions?rotate=180&resize=100,100rotated 180 degrees, resized to fit 100x100