Image Transforms
Rotate Image
Rotate an image by any angle, clockwise.
GET/api/rotate?url=&angle=
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| url | string | Required | Public http(s) URL of the source image (max 10 MB). |
| angle | number | Required | Degrees clockwise (-360 to 360). |
| background | string | Optional | Hex color for the corners revealed by the rotation. Default transparent (use a color for jpeg). |
| format | string | Optional | Output format: png, jpeg, webp, avif or gif. |
| quality | integer | Optional | 1-100 for jpeg/webp/avif. Default 80. |
Try it
Saved only in this browser. Requests use your key and count toward your quota. Get a key
GET /api/rotateExample request
curl "https://your-app.com/api/rotate?url=https%3A%2F%2Fexample.com%2Fphoto.jpg&angle=45&background=ffffff&format=jpeg" \
-H "x-api-key: YOUR_API_KEY" \
--output rotated.jpgResponse
Content-Type: image/png (or the requested format) — the rotated image.