Brightness and contrast
You can use image processing to adjust the brightness and contrast of images.
Parameters
Name | Description | Value range |
b | Adjusts the brightness. A value of 0 indicates the original brightness. A value less than 0 decreases the brightness. A value greater than 0 increases the brightness. | [-100, 100] |
d | Adjusts the contrast. A value of 0 indicates the original contrast. A value less than 0 decreases the contrast. A value greater than 0 increases the contrast. | [-100, 100] |
Examples
Adjusting the brightness of the original image.
https://oss-console-img-demo-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/example.jpg@50b
Adjusting the contrast of the original image.
https://oss-console-img-demo-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/example.jpg@-50d
Adjusting the brightness and contrast of the original image.
https://oss-console-img-demo-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/example.jpg@-50d_50b