All Products
Search
Document Center

Dynamic Content Delivery Network:Rotate images

Last Updated:Apr 18, 2024

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

Note

Automatic rotation

Images taken by some cameras carry the orientation property. Automatic rotation is applicable to only images that carry the orientation property. After you enable the automatic rotation feature, DCDN automatically rotates these images to a proper orientation. You can enable automatic rotation by following instructions on Enable image processing.

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

image_01=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.