Updated on 2024-02-29 GMT+08:00

Rotation Settings

You can edit code on OBS Console or make an API call to rotate images.

This operation rotates images clockwise. For details, see Table 1.

Operation name: rotate

Table 1 Rotation

Parameter

Value Description

Code Example

value

Rotation angle, clockwise [0, 360].

The default value is 0, which means the image is not rotated. A larger value means the image is clockwise rotated by a larger angle.

image/rotate,90

  • After rotation, dimensions of an image may increase.

Example

Set the width to 100 and the rotation angle to 90.

https://obs.region.example.com/image-demo/example.jpg?x-image-process=image/resize,w_100/rotate,90

Set the width to 100 and the rotation angle to 220.

https://obs.example.region.com/image-demo/example.jpg?x-image-process=image/resize,w_100/rotate,220