This document helps you understand image rotation.
Operation Scenarios
ZOS supports image rotation. You can rotate an image using rotation parameters.
Constraints and Restrictions
Supportedsource formats: JPG, PNG, GIF, WebP, and TIFF.
The size of a source image cannot exceed 20 MB. The total pixels cannot exceed 250 million px.
For rotation, either width or height cannot exceed 4,096 px.
For rotations other than 90°, 180°, 270°, or 360°, the image dimensions will increase, and areas outside the source image will be filled with white.
Description
Operator: rotate
Parameter Name | Purpose | Value | Required |
[value] | The clockwise rotation angle of the image. | [0,360] | Yes |
Example
To rotate an image clockwise by 180 degrees, set the parameter to 180, and the specific request parameter is:
image/rotate,180