> For the complete documentation index, see [llms.txt](https://docs.cloudimage.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudimage.io/transformations/image-operations/flip.md).

# 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 %}
