You can rotate an image stored in OSS clockwise by adding rotate parameters. This topic describes the parameters used to rotate an image and provides examples on how to rotate an image.


Operation name: rotate

The following table describes the parameters you can configure.

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

Default value: 0. A value of 0 indicates that the image is not rotated.

Usage notes

  • If an image is not rotated by 90°, 180°, 270°, or 360°, the size of the processed image increases.
  • An image that you want to rotate cannot exceed 4096 × 4096 pixels.
  • If rotation parameters are applied to an animated GIF image, the animated GIF image becomes a static GIF image.


This topic provides examples on how to rotate an image in the oss-console-img-demo-cn-hangzhou bucket in the China (Hangzhou) region. The image is hosted at the following URL: