Compress images in their original format by adjusting absolute or relative quality. Reducing quality decreases file size and saves bandwidth.
Parameters
image_process=quality
The following table describes the parameters.
|
Parameter |
Description |
Value range |
|
Q |
The absolute quality of the image. The quality cannot be adjusted to a value higher than the current quality. |
The value must be a multiple of 5 between 0 and 100. Other values are not supported. Note
A greater absolute value specifies higher quality and higher clarity. We recommend that you set Q to 95. |
|
q |
The relative quality of the image. The output quality is calculated by multiplying the original quality by the specified coefficient. |
The value must be a multiple of 5 between 0 and 100. Other values are not supported. Note
A greater relative value specifies higher quality and higher clarity. We recommend that you set q to 95. |
Examples
-
A request URL that changes the absolute quality is
http(s)://example.com/image01.png?image_process=quality,Q_90. If the current absolute quality is 95, the absolute quality after the conversion is 90. If the current absolute quality is 80, the absolute quality after the conversion is still 80. -
A request URL that changes the relative quality is
http(s)://example.com/image01.png?image_process=quality,q_90. If the current relative quality is 80, the relative quality after the conversion is 80 × 90% = 72.