> For the complete documentation index, see [llms.txt](https://docs.scaleflex.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scaleflex.com/dynamic-media-optimization-dmo/settings/delivery/rules.md).

# 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="https://2536208400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqsq2dR7Fjagf5eTifWZx%2Fuploads%2Fkn26isSXGqEwc6VqrhEn%2Fimage.png?alt=media&amp;token=e76077ee-8ff7-4103-aa97-bdb15337b84a" 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.
