Updated on 2024-02-29 GMT+08:00

Contrast

You can use the GUI, code, or APIs to configure the contrast of an image.

Table 1 lists the parameters in detail.

Operation name: contrast

Table 1 Contrast description

Parameter

Value Description

Code Example

value

Contrast of images, ranging [-100, 100].

The original contrast value is 0. The contrast becomes stronger as the value increases from -100 to 100.

image/contrast,-50

Example

  • Set the contrast to -50.

https://obs.region.example.com/image-demo/example.jpg?x-image-process=image/contrast,-50