---
title: Image.Orientation
framework: swiftui
role: symbol
role_heading: Enumeration
path: swiftui/image/orientation
---

# Image.Orientation

The orientation of an image.

## Declaration

```swift
@frozen enum Orientation
```

## Overview

Overview Many image formats such as JPEG include orientation metadata in the image data. In other cases, you can specify image orientation in code. Properly specifying orientation is often important both for displaying the image and for certain kinds of image processing. In SwiftUI, you provide an orientation value when initializing an Image from an existing CGImage.

## Topics

### Getting image orientations

- [Image.Orientation.up](swiftui/image/orientation/up.md)
- [Image.Orientation.down](swiftui/image/orientation/down.md)
- [Image.Orientation.left](swiftui/image/orientation/left.md)
- [Image.Orientation.right](swiftui/image/orientation/right.md)

### Getting mirrored image orientation

- [Image.Orientation.upMirrored](swiftui/image/orientation/upmirrored.md)
- [Image.Orientation.downMirrored](swiftui/image/orientation/downmirrored.md)
- [Image.Orientation.leftMirrored](swiftui/image/orientation/leftmirrored.md)
- [Image.Orientation.rightMirrored](swiftui/image/orientation/rightmirrored.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [CaseIterable](swift/caseiterable.md)
- [Copyable](swift/copyable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Configuring an image

- [Fitting images into available space](swiftui/fitting-images-into-available-space.md)
- [imageScale(_:)](swiftui/view/imagescale(_:).md)
- [imageScale](swiftui/environmentvalues/imagescale.md)
- [Image.Scale](swiftui/image/scale.md)
- [Image.ResizingMode](swiftui/image/resizingmode.md)
