<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIImage/Orientation",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIImageOrientation"
  },
  "title" : "UIImage.Orientation"
}
-->

# UIImage.Orientation

Constants that specify the intended display orientation for an image.

```
enum Orientation
```

## Overview

Orientation values are commonly found in image metadata, and specifying image orientation correctly can be important both for displaying the image and for certain kinds of image processing.

The [`UIImage`](/documentation/UIKit/UIImage) class automatically handles the transform necessary to present an image in the correct display orientation according to its orientation metadata, so an image object’s [`imageOrientation`](/documentation/UIKit/UIImage/imageOrientation) property simply indicates which transform was applied.

For example, an iOS device camera always encodes pixel data in the camera sensor’s native landscape orientation, along with metadata indicating the camera orientation. When UIImage loads a photo shot in portrait orientation, it automatically applies a 90° rotation before displaying the image data, and the image’s [`imageOrientation`](/documentation/UIKit/UIImage/imageOrientation) value of [`UIImage.Orientation.right`](/documentation/UIKit/UIImage/Orientation/right) indicates that this rotation has been applied.

![UIImage rotates an image with right orientation for correct display](images/com.apple.uikit/media-2948302.png)

> Note:
> Some frameworks describe image orientation using the <doc://com.apple.documentation/documentation/ImageIO/CGImagePropertyOrientation> type (or the raw TIFF/Exif numeric values that type defines symbols for). However, the underlying numeric values of that type are incompatible with ``doc://com.apple.uikit/documentation/UIKit/UIImage/Orientation``. For conversion help, see the <doc://com.apple.documentation/documentation/ImageIO/CGImagePropertyOrientation> overview.

## Topics

### Image orientations

[`UIImageOrientationUp`](/documentation/UIKit/UIImage/Orientation/up)

The original pixel data matches the image’s intended display orientation.

[`UIImageOrientationDown`](/documentation/UIKit/UIImage/Orientation/down)

The image has been rotated 180° from the orientation of its original pixel data.

[`UIImageOrientationLeft`](/documentation/UIKit/UIImage/Orientation/left)

The image has been rotated 90° counterclockwise from the orientation of its original pixel data.

[`UIImageOrientationRight`](/documentation/UIKit/UIImage/Orientation/right)

The image has been rotated 90° clockwise from the orientation of its original pixel data.

[`UIImageOrientationUpMirrored`](/documentation/UIKit/UIImage/Orientation/upMirrored)

The image has been horizontally flipped from the orientation of its original pixel data.

[`UIImageOrientationDownMirrored`](/documentation/UIKit/UIImage/Orientation/downMirrored)

The image has been vertically flipped from the orientation of its original pixel data.

[`UIImageOrientationLeftMirrored`](/documentation/UIKit/UIImage/Orientation/leftMirrored)

The image has been rotated 90° clockwise and flipped horizontally from the orientation of its original pixel data.

[`UIImageOrientationRightMirrored`](/documentation/UIKit/UIImage/Orientation/rightMirrored)

The image has been rotated 90° counterclockwise and flipped horizontally from the orientation of its original pixel data.

## See Also

  <doc://com.apple.documentation/documentation/ImageIO/CGImagePropertyOrientation>

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)