When images delivered through Alibaba Cloud CDN appear washed out, too dark, or blurry due to camera settings or device compatibility issues, use the image editing feature to adjust brightness, contrast, and sharpness directly in the CDN delivery URL.
The image editing feature of Alibaba Cloud CDN, the image editing feature of DCDN, and the Image Processing (IMG) feature of Object Storage Service (OSS) are three separate features and cannot be used interchangeably.
Image editing is free of charge until further notice.
Converting between image formats (for example, JPEG to WebP, JPEG to PNG, or PNG to WebP) may produce larger files because different formats use different compression algorithms. To reduce file size after a format conversion, set the quality parameter to a lower value.Parameters
Append parameters to the image URL using the image_process query string key:
http(s)://example.com/<image-path>?image_process=<parameter>,<value>| Parameter | Description | Range |
|---|---|---|
bright | Adjusts image brightness. 0 leaves brightness unchanged. Positive values increase brightness; negative values decrease it. | –100 to 100 |
contrast | Adjusts image contrast. 0 leaves contrast unchanged. Positive values increase contrast; negative values decrease it. | –100 to 100 |
sharpen | Adjusts image sharpness. Higher values produce a crisper result. Values above 300 may introduce image artifacts. | 50 to 399 |
Recommended values for `sharpen`: 50, 100, 150, 200, 250, 300.
Examples
Sharpen a standard image:
http(s)://example.com/image01.png?image_process=sharpen,100Increase brightness by 50:
http(s)://example.com/image01.png?image_process=bright,50Decrease contrast by 50:
http(s)://example.com/image01.png?image_process=contrast,50