> 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/transformations/image-optimization/filters/adjustment/contrast.md).

# Contrast

Contrast correction

To adjust the contrast, you can use the **contrast** filter and set the desired adjustment value.

<mark style="color:green;">**contrast=X**</mark>

## Examples

| Preview                                                                                                                                                                                                                     | Syntax                                                                                                                                                                                                                                                 |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| ![](https://2536208400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqsq2dR7Fjagf5eTifWZx%2Fuploads%2FnIl8NEFxTT9NZ83hYlIx%2Ffrog%20\(10\).png?alt=media\&token=58ebbf67-474a-471f-98a7-110b08d124be) | <p>Original image:<br><a href="https://fdocs.filerobot.com/docs/frog.png?w=400">/docs/frog.png?<mark style="color:orange;"><strong>w=400</strong></mark></a></p>                                                                                       |
| ![](https://2536208400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqsq2dR7Fjagf5eTifWZx%2Fuploads%2F0gESqxdqkc0kcrbdh0yn%2Ffrog%20\(11\).png?alt=media\&token=4e81f821-87d3-4b63-8c9e-ed304a080bf9) | <p>Increased contrast:<br><a href="https://fdocs.filerobot.com/docs/frog.png?w=400&#x26;contrast=30">/docs/frog.png?<mark style="color:orange;"><strong>w=400</strong></mark>&<mark style="color:green;"><strong>contrast=30</strong></mark></a></p>   |
| ![](https://2536208400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqsq2dR7Fjagf5eTifWZx%2Fuploads%2FIYqizwaZFa9v7gjGCVDJ%2Ffrog%20\(12\).png?alt=media\&token=5f58a45d-4161-48e1-8fff-73d8298a4090) | <p>Decreased contrast:<br><a href="https://fdocs.filerobot.com/docs/frog.png?w=400&#x26;contrast=-10">/docs/frog.png?<mark style="color:orange;"><strong>w=400</strong></mark>&<mark style="color:green;"><strong>contrast=-10</strong></mark></a></p> |
