# Pixelate

Applies a pixelation effect to an image. You can set the desired block size in pixels. If the image is resized the filter is applied after resizing.

<mark style="color:green;">**pixelate=X**</mark> | <mark style="color:green;">**pixellate=X**</mark>

## Examples

| Preview                                                                                                                                                                                                             | Syntax                                                                                                                                                                                                                                            |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![](https://2536208400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqsq2dR7Fjagf5eTifWZx%2Fuploads%2F4KQr5ffiVYdKSKGcxPeD%2Fimage.png?alt=media\&token=2ea6b265-33d7-4f07-847a-58ce10be1fa2) | <p>Original image:<br><a href="https://fdocs.filerobot.com/docs/earth.jpg?w=400">/docs/earth.jpg?<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%2Fk5GDtdPwL7v89YrADXPn%2Fimage.png?alt=media\&token=c9d61601-ccf5-4562-99ad-3a6360ab5f7f) | <p>Pixelate effect:<br><a href="https://fdocs.filerobot.com/docs/earth.jpg?w=400&#x26;pixelate=8">/docs/earth.jpg?<mark style="color:orange;"><strong>w=400</strong></mark>&<mark style="color:green;"><strong>pixelate=8</strong></mark></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.scaleflex.com/dynamic-media-optimization-dmo/transformations/image-optimization/filters/pixelate.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.
