This API imageMogr2 from Tencent Cloud CI is used to blur images in COS.
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] (https://intl.cloud.tencent.com/document/product/1045/33431).
download_url?imageMogr2/blur/<radius>x<sigma>
Operation name: blur.
Parameter | Description |
---|---|
download_url | URL that is used to access a file. Format: <BucketName-APPID>.cos.<picture region>.<domain>.com/<picture name> ,such as examplebucket-1250000000.cos.ap-shanghai.myqcloud.com/picture.jpeg |
radius<radius> | Blurring radius. Value range: 1 - 50. |
sigma<sigma> | Standard deviation of normal distribution. The value must be greater than 0. |
This parameter is not supported when the image format is gif.
This example shows you how to perform Gaussian blur when the blurring radium is 8 and sigma is 5.
http://examples-1251000004.cos.ap-shanghai.myqcloud.com/sample.jpeg?imageMogr2/blur/8x5
The effect of the Gaussian blur is as follows:
Was this page helpful?