Control Quality
Quality
GET
https://images.contentstack.io/v3/assets/{stack_api_key}/{asset_uid}/{file_uid}/filename.jpg?environment={environment_name}&quality={quality_value}Additional Notes
- Lower the value, lower will be the quality of the output image, and vice versa.
- The quality parameter is not applicable for the image types (GIF and PNG) that are not lossy.
- When only the quality parameter is specified, and if the output image is larger than the actual image, the original image will be returned.
Note Check out the limitations that are applicable here.
The quality parameter lets you control the compression level of images that have Lossy file format. The value for this parameters can be entered in any whole number (taken as a percentage) between 1 and 100. The lower the number, the smaller will be file size and lower quality, and vice versa. If the source image file is not of Lossy file format, this parameter will be ignored.
Click to enlarge