You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
Image processing
Quality
Copy page
Download PDF
Quality
The quality feature allows you to adjust the quality of an image by compressing it. This topic introduces the parameters and provides examples of the quality feature.​
Supported parameters​
​
Parameter​
Description​
Value​
Required​
q​
Relative quality. This option compresses the image to q% of the original image's quality.​
[1,100]​
Yes​
Q​
Absolute quality. This option compresses the image directly to Q%. The quality of the compressed image is independent of the original.​
[1,100]​
Yes​
​
Notes​
  • The q parameter only works for PJPEG, JPG, and JPEG images.​
  • The Q parameter is effective for WebP, PJPEG, JPG, JPEG, JPEG-2000, AVIF, and HEIC images.​
warning​
Using the q or Q parameter on PNG, TIFF, BMP, GIF, or PSD images will not trigger an error. However, the operation will have no effect and the image quality will remain unchanged.​
  • If both q and Q are specified, the output is based on Q.​
Examples​
  • Set q to 60 and the output format to JPG/JPEG.​
  • ​Image​​
  • Set Q to 60 and the output format to JPG/JPEG.​
  • ​Image​​
​
Last updated: 2026.02.03 17:51:49