AntCMS provides built-in functionality to automatically compress images upon delivery.
This feature is automatically enabled when:
To ensure performance, images are compressed and the result is stored in the AntCMS cache to be re-used upon future requests; your original files remain untouched.
AntCMS automatically detects and compresses the following formats:
By default, all supported images are processed using a quality level of 85%. This provides an ideal balance between visual fidelity and file size, though this value may be changed via the config file.
If you require a specific quality level for a particular image rather than the global default, you can override it by appending a imageQuality GET parameter to your asset URL.
| Level | Value | Example URL |
|---|---|---|
| Very High | 95% | /assets/image.jpg?imageQuality=veryhigh |
| High | 80% | /assets/image.jpg?imageQuality=high |
| Medium | 65% | /assets/image.jpg?imageQuality=medium |
| Low | 25% | /assets/image.jpg?imageQuality=low |
| Very Low | 0% | /assets/image.jpg?imageQuality=verylow |
Note: The following images demonstrate the effect of different quality parameters.





