This topic describes the parameters and examples to rotate an image.

Precautions

  • The rotated image may become larger than the source image in size.
  • There are limits on the size of the image to rotate. The image width or height cannot exceed 4,096 px.

Parameters

Operation name: rotate

The following table lists the parameters.

Parameter Description Valid value
[value] The degree by which the image is rotated clockwise. [0, 360]

The default value is 0, indicating that the image is not rotated.

Examples

  • Rotate the source image by 90 degrees clockwise.

    The URL used to process the image is in the following format: <Source image URL>? x-oss-process=image/rotate,90

  • Scale down a source image to 200 px in width and 200 px in height. Rotate it by 90 degrees clockwise.

    The URL used to process the image is in the following format: <Source image URL>? x-oss-process=image/resize,w_200,h_200/rotate,90