About this endpoint
What it does
Rotates an image by 90, 180 or 270 degrees and returns the rotated image as a file. You can choose PNG or JPEG for the output.
Use it to fix sideways phone uploads, normalise orientation in an upload pipeline, or prepare assets before display. Upload an image of up to 15 MB, pick the rotation, and get the rotated image back in the response body
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | The image file to rotate. Up to 15 MB. |
| format | String | No | Output image format. Accepted values: png or jpeg. |
| degrees | ENUM | Yes | Rotation in degrees. Allowed values: 90, 180, 270. |
Response
Returns a binary file containing the rotated image.


