All Products
Search
Document Center

CDN:Rotate images

Last Updated:Jan 08, 2024

Alibaba Cloud CDN supports automatic image rotation and manual image rotation. You can rotate images to change the orientation or angle.

Note
  • The image editing feature of Alibaba Cloud CDN, the image editing feature of DCDN, and the Image Processing (IMG) feature of Object Storage Service (OSS) are three different features.

  • Image editing is a paid service and is free of charge until further notice.

Automatic rotation

Images that are taken by some cameras carry the orientation property. Automatic rotation applies only to images that contain the orientation property. After you enable the automatic rotation feature, Alibaba Cloud CDN automatically rotates images. For more information, see Enable and use image editing.

Important After you enable automatic conversion to WebP, the cache hit ratio decreases. It automatically increases after a short period of time. Do not enable this feature during peak hours.

Action: auto-orient

Example

example.com/image01.png?image_process=auto-orient

Image rotating parameters

Parameters

Images can be rotated to a specific angle clockwise. Supported angles are 90°, 180°, and 270°.

Set the action to rotate.

Example

Rotate the source image 180° clockwise. The request URL is http(s)://example.com/image01.png?image_process=rotate,180.