Last updated: 2020-06-11 16:37:50


    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.

    API Form


    Please ignore the preceding spaces and line breaks.

    Parameter Description

    Parameter Description
    download_url URL that is used to access a file. Format: <BucketName-APPID>.cos.<picture region>.<domain>.com/<picture name>,
    for example,
    /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.


    Common rotation

    The example below shows how to rotate an image 90 degrees clockwise.

    The final effect is as follows: