---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---

# `Orient`

Enumerator options for [`imageOptimizerOptions.orient`](./imageOptimizerOptions.mdx).

## Constants

- `Default` (`"1"`) 
- `FlipHorizontal` (`"2"`) 
- `FlipHorizontalAndVertical` (`"3"`) 
- `FlipVertical` (`"4"`) 
- `FlipHorizontalOrientLeft` (`"5"`) 
- `OrientRight` (`"6"`) 
- `FlipHorizontalOrientRight` (`"7"`) 
- `OrientLeft` (`"8"`) 

## Examples

```js
import { Orient, Region } from 'fastly:image-optimizer';

addEventListener("fetch", (event) => event.respondWith(handleRequest(event)));

async function handleRequest(event) {
  return await fetch('https://www.w3.org/Graphics/PNG/text2.png', {
    imageOptimizerOptions: {
      region: Region.UsEast,
      orient: Orient.FlipHorizontal
    },
    backend: 'w3'
  });
}
```