Last updated: 2021-07-20 16:41:20


    CI uses the imageMogr2 API to sharpen an image.

    API Format



    Operation: sharpen

    Parameter Description
    download_url URL of the input image, formatted as <bucketname-appid>.cos.<picture region="">.<domain>.com/<picture name="">
    /sharpen/&dxlt;value> Sharpens an image, where value controls the strength of the sharpening effect. The greater the value, the more obvious the sharpening. Value range: an integer in the range of 10 to 300 (70 is recommended.)
    /ignore-error/1 If this parameter is carried and the image failed to be processed because it is too large, the input image will be returned with no error reported.



    This example sharpens an image with the sharpening value of 70:

    Output image:

    Sharpening an image with a signature carried

    This example processes the image in the same way as in the example above except that a signature is carried. The signature is joined with other processing parameters using an ampersand (&):<signature>&imageMogr2/sharpen/70

    You can obtain the value of <signature> by referring to Request Signature.