API Reference

The Rotate transformation offers a practical and efficient way to rotate your images. Ideal for adjusting orientation, creating visual effects, or aligning images within a specific layout, this feature adds a level of dynamic control to the visual presentation.

Parameter structure

To apply the Rotate transformation, the URL should be formatted as follows:

/rotate:[value]/

/rotate:90/ To rotate the image by 90 degrees.

To apply the rotation, the URL should be formatted as follows:

Parameter structure

https://img.voidr.co/my_project/rotate:50/fetch/:url

Where value is the rotation angle of the image, in degrees.

⚠️ The specified value must be a valid number between 0 and 360.

Usage example

To rotate an image by 180 degrees, the URL would be:

http://127.0.0.1:3000/test_mode/rotate:180/fetch/https://images.unsplash.com/photo-1561336313-0bd5e0b27ec8

To rotate an image by 45 degrees, the URL would be:

https://img.voidr.co/my_project/rotate:45/fetch/https://images.unsplash.com/photo-1561336313-0bd5e0b27ec8