This API imageMogr2 from Tencent Cloud CI is used to rotate images in COS, including common rotation and adaptive rotation.
Image processing is a paid service, the fees of which are charged by Cloud Infinite. For detailed billing instructions, see Cloud Infinite’s Billing and Pricing.
Please ignore the preceding spaces and line breaks.
|download_url||URL that is used to access a file. Format:
|/rotate/<rotateDegree>||Common rotation, which indicates an image rotates clockwise. Value range: 0 - 360. Default: none.|
|/auto-orient||Adaptive rotation, which adaptively rotates an image based on the EXIF data of the original image.|
The example below shows how to rotate an image 90 degrees clockwise.
The final effect is as follows: