The quality transform is available for images in JPG or WebP format.
Parameters
Name | Description | Value range |
q |
| 1-100, lossless |
Q |
| 1-100, lossless |
Notes
Omitting the Q or q parameter may increase the image file size. To set a fixed quality for the image, use the Q parameter. To save the image with its original quality, specify 100q.
Examples
Resize the original image to 100 × 100 pixels and set the relative quality to 80%.
https://oss-console-img-demo-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/example.jpg@100w_100h_80q

Resize the original image to 100 × 100 pixels and set the absolute quality to 80.
https://oss-console-img-demo-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/example.jpg@100w_100h_80Q

Resize the original PNG image to a width of 200 pixels and save it in the lossless WebP format.
