Image Rotation
Updated at:2025-11-03
Overview
This document explains methods to rotate images.
Image rotation parameters
| Parameter name | Abbreviated command | Types | Value range | Command description | Default value | Required or not |
|---|---|---|---|---|---|---|
| angle | a | int | -360~360 | Specify the image rotation mode. A positive value indicates clockwise rotation, e.g., a_60;a negative value indicates counterclockwise rotation, e.g., a_-30. |
0 | No |
| orientation | o | int | 0,1,2 | Automatically rotate based on exif information.o_0: Follow the original image’s default orientation without automatic rotation; o_1: Rotate first, then thumbnail; o_2: Thumbnail first, then rotate. |
Example
- Rotate the image 30° clockwise.
https://doc.bce.baidu.com/bce-documentation/BOS/image.jpg@a_30

