# Compression

Image compression is a type of data compression applied to digital images, to reduce their cost for storage or transmission. Scaleflex DMO (Optimization) compresses your image using compression filters for faster delivery and loading time.

<figure><img src="/files/qLYuPz1dHoscQjtIy36H" alt=""><figcaption></figcaption></figure>

The various Image Compression settings available are:

* **JPEG - Default Compression factor**: This signifies the default compression ratio for all your images. It is recommended to give the value "85" here. "100" value means no compression ie. image will be delivered as it is and "0" value means it will be compressed into zip ie. &#x20;
* **Progressive JPEG:** Progressive JPEG is used for loading a low quality image to fill the container (due to slow networks) while the actual image loads. You can enable or disable this feature.
* **PNG - Enable PNG lossy compression:** PNG Lossy compression is an algorithm designed to reduce the size of your PNGs while keeping visual quality. You can enable this feature by checking the **"Enable PNG lossy compression"**
* **PNG - Default PNG quality**: Same as **JPEG - Default Compression factor** , this field defines the compression ratio for your images. It is recommended to give the value "85" here. "100" value means no compression ie. image will be delivered as it is and "0" value means it will be compressed into zip ie.
* **SVG - Rasterize SVG**: SVG is a vector-based format which is already well compressed. When **Rasterize SVG** is active, all SVG files are converted to a raster image.
* **SVG - Enable SVG lossy compression:** SVG Lossy compression refers to the technique of reducing the filesize by reducing the number of curve nodes and remove invisible elements to decrease filesize.
* **WEBP:** WEBP is an image format supported by most modern browsers [(full list)](https://caniuse.com/webp). It achieves better compression than JPEG and is optimized for web delivery.\
  **1. Compress all PNGs to WebP automatically:** Checking this feature will compress your PNG          images to WEBP format.\
  **2. Compress animated GIFs to animated WebP automatically:** Checking this feature will compress your animated GIFs to animated WEBP format.\
  **3. Compress all other image formats to WebP automatically:** Checking this feature will compress images with other formats (JPEG, BMP , PDF, Adobe etc) into WEBP format.
* **AVIF - Enable AVIF compression:** AVIF is a web image format with increasing popularity and browser support. Scaleflex DMO can compress your images automatically into AVIF to reduce bandwidth and improve loading times. Checking this feature will compress your AVIF images.
* **AVIF - Compress by default:** This feature will compress your AVIF images by default.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.scaleflex.com/dynamic-media-optimization-dmo/settings/images/compression.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
