# Rules

Scaleflex DMO allows you define transformation rules based on image path and filename pattern matching.\
Rules allows you to apply default transformations on assets based on the asset’s filename.

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

| Rule match | Parameters          | Description |
| ---------- | ------------------- | ----------- |
| .png       | h=300\&w=300\&wat=1 |             |

This rule will apply the transformations - h=300\&w=300\&wat=1 for all image urls which contains .png string in their filename.


---

# 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/delivery/rules.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.
