Contrast refers to the measurement of different brightness levels between the brightest white and the darkest black of an image, that is, the grayscale contrast of an image. You can use contrast parameter to adjust the contrast of the source images stored in OSS. This topic describes the parameters and examples to adjust the contrast for an image.

Parameters

Operation name: contrast

Parameter Description Valid value
[value] The contrast of the image. [-100,100]
  • A value smaller than 0: reduces the contrast.
  • A value of 0: maintains the contrast.
  • A value greater than 0: increases the contrast.

Examples

The image-demo bucket that is located in the China (Hangzhou) region is used as an example. Public endpoint of the image: