# Flip

Mirrors the image horizontally and/or vertically.

<mark style="color:orange;">**flip=h**</mark> | <mark style="color:orange;">**flip=v**</mark> | <mark style="color:orange;">**flip=hv**</mark>

## Examples

| Preview                          | Syntax                                                                                                                                                                                                                                                                                                        |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![](/files/BFI5jLw7NxsVEKZZtJTw) | <p>Flip horizontally:<br><a href="https://doc.cloudimg.io/https://samples.scaleflex.com/flat_hd.jpg?w=400&#x26;flip=h">/samples.scaleflex.com/flat\_hd.jpg?<mark style="color:orange;"><strong>w=400</strong></mark>&<mark style="color:orange;"><strong>flip=h</strong></mark></a></p>                       |
| ![](/files/eJS8psi1MGULOra2L09I) | <p>Flip both horizontally and vertically:<br><a href="https://doc.cloudimg.io/https://samples.scaleflex.com/flat_hd.jpg?w=400&#x26;flip=hv">/samples.scaleflex.com/flat\_hd.jpg?<mark style="color:orange;"><strong>w=400</strong></mark>&<mark style="color:orange;"><strong>flip=hv</strong></mark></a></p> |

{% hint style="info" %}
If the image is also rotated, rotation is performed *after* the image has been flipped.
{% endhint %}


---

# 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.cloudimage.io/transformations/image-operations/flip.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.
