# Configuration

Once the extension is installed successfully, go to **Stores > Configuration** to configure the extension for use.

<figure><img src="/files/584G1eU1Li7SwYZOaobi" alt=""><figcaption></figcaption></figure>

**Image Optimizer:** Enable and disable the extension from here.

**Custom Quality Percentage:** Admin will need to add the image quality percentage here.

**Included Directories**: Add the directory path of your media storage that you want to include.

**Excluded Directories:** Add the directory path of your media storage that you want to exclude.

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

**Cron:** Set the cron running time to optimize images automatically.


---

# 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.magecomp.com/magento-2-image-optimizer-extension/configuration.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.
