Overview
Sources
Libraries
Images API

Quality 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.

Values

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.

Examples

Specify an output quality of 50 with quality=50 parameter:

GET
https://assets.imglab-cdn.net/flowers.jpeg?quality=50
Tulips field image with quality reduced to 50% using quality parameter with a value of 50.
x px

Specify an output quality of 100 with quality=100 parameter:

GET
https://assets.imglab-cdn.net/flowers.jpeg?quality=100
Tulips field image with quality increased to 100% using quality parameter with a value of 100.
x px