Quality
Control the output quality of converted images using the quality query parameter.
Parameter
| Parameter | Range | Default | Example |
|---|---|---|---|
quality | 1 - 100 | 100 | ?quality=80 |
How it works
- Quality is applied during format conversion (AVIF/WebP)
- Lower values produce smaller files with some visual loss
- Values are clamped between 1 and 100
- When no
qualityparam is provided, the default is 100 (no quality reduction)
Combining with other params
/photo.jpg?w=800&quality=80
/photo.jpg?w=400&h=300&quality=60