This topic describes the parameters and examples to sharpen an image.

Parameters

Operation name: sharpen

The following table lists the parameters.

Parameter Description Valid value
[value] The degree of sharpness. A greater value indicates a clearer image. However, an overlarge value may result in image artifacts. [50,399]

We recommend that you set this parameter to 100 for optimal effects.

Examples

  • Sharpen the source image. The sharpen parameter is set to 100.

    The URL used to process the image is in the following format: <Source image URL>? x-oss-process=image/sharpen,100

  • Scale down an image to 200 px in width. Set the sharpen parameter to 100 px.

    The URL used to process the image is in the following format: <Source image URL>? x-oss-process=image/resize,w_200/sharpen,100