# SVG compression

Cloudimage offers automatic optimization of Scalable Vector Graphics (SVG) files which can reduce the file size by up to 80% without visual appearance deterioration. This is possible since most SVG editors include unnecessary information which can be omitted. Moreover, most shapes in SVG files can be simplified.

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

| Preview                          | Syntax                                                                                                                                                                                        |
| -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![](/files/6t2V0UFN7hxv00ZcODp6) | <p>Original (1543 bytes):</p><p><a href="https://samples.scaleflex.com/5603.svg"><https://samples.scaleflex.com/5603.svg></a></p>                                                             |
| ![](/files/g2tq01IszqiF46yJVKqG) | <p>Compressed SVG (221 bytes):<br><a href="https://doc.cloudimg.io/https://samples.scaleflex.com/5603.svg?force_format=svg"><https://samples.scaleflex.com/5603.svg?force_format=svg></a></p> |


---

# 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.cloudimage.io/transformations/image-compression/svg-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.
