Quality

Control the output quality of converted images using the quality query parameter.

Comparison

Quality 100 Quality 10
Quality 100 Quality 10

Parameter

Parameter Range Default Example
quality 1 - 100 100 ?quality=80

How it works

Mechanism Description
Compression Quality is applied during format conversion (AVIF/WebP)
Efficiency Lower values produce smaller files with some visual loss
Clamping Values are clamped between 1 and 100
Default When no quality param is provided, the default is 100 (no reduction)

Step snapping

Quality values are snapped to the nearest quality step before processing. For example, ?quality=75 snaps to quality=80 with the default step configuration.

Combining with other params

/photo.jpg?w=800&quality=80
/photo.jpg?w=400&h=300&quality=60