- Documentation
Torch Object Storage
User Guide
Data processing
Image processing
Quality
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
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.
-
- Set Q to 60 and the output format to JPG/JPEG.
-
Last updated: 2026.02.03 17:51:49