Rotation Settings

This function is only available for Code and API calling mode.

This operation rotates the image 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

NOTE:
  • An image can be rotated only when both the height and width are shorter than 4096.
  • After rotation, dimensions of an image may increase.

Example

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

https://obs.cn-north-1.myhwclouds.com/ya89soshla6s4uma-ims-example-cn-north-1/example.jpg?x-image-process=image/resize,w_100/rotate,90

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

https://obs.cn-north-1.myhwclouds.com/ya89soshla6s4uma-ims-example-cn-north-1/example.jpg?x-image-process=image/resize,w_100/rotate,220

Registration