This document helps you understand image quality adjustment.
Operation Scenarios
ZOS supports image quality changing. You can compress the image in the source image’s format.
Constraints and Restrictions
Quality changing supports only JPG and WebP formats.
The size of a source image cannot exceed 20 MB. The width or height cannot exceed 30,000 px, and total pixels cannot exceed 250 million px.
For regions supporting image quality changing, see Product Capability Map.
Description
Operator: quality
Parameter Name | Purpose | Value | Required |
Q | Sets the absolute quality of the image. The smaller the number, the lower the quality. Note: If the set quality exceeds the source image’s absolute quality, the source image’s quality is preserved. | [1,100] | Yes |
Example
To set the image’s absolute quality to 50%, the specific request parameter is:
image/quality,Q_50