quality
Specify the output quality for the image allowing to control the degree of compression.
This parameter only applies to output formats with support for lossy compression like jpeg
, webp
, avif
, and jxl
.
This parameter accepts integer values in the range 0
to 100
.
0
: minimum image output quality (worst image quality but smaller file size). 100
: maximum image output quality (best image quality but bigger file size).
The default value for this parameter is 75
.
Specify an output quality of 50
with quality=50
parameter:
https://assets.imglab-cdn.net/flowers.jpeg?quality=50
Specify an output quality of 100
with quality=100
parameter:
https://assets.imglab-cdn.net/flowers.jpeg?quality=100