You can sharpen an image stored in OSS by adding sharpen parameters. This topic describes the parameters used to sharpen an image and provides examples on how to sharpen an image.

Parameters

Operation name: sharpen

The following table describes the parameters you can configure.

Parameter Description Valid value
[value] The degree of sharpness. [50,399]

A greater value indicates a clearer image. However, an overlarge value may result in image artifacts. We recommend that you set this parameter to 100 for optimal effects.

Examples

You can process images by using object URLs, OSS SDKs, or API operations. In this example, object URLs are used. For more information about how to use OSS SDKs and API operations to process images, see IMG implementation modes.

An image in the bucket named oss-console-img-demo-cn-hangzhou in the China (Hangzhou) region is used in this example. The following URL is used to access the image over the Internet:

Sharpen the source image. The degree of sharpness is set to 100. The following URL is used to process the image: https://oss-console-img-demo-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/example.jpg?x-oss-process=image/sharpen,1002