<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ImageIO",
  "identifier" : "/documentation/ImageIO/kCGImageDestinationOrientation",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Image I/O"
    ],
    "preciseIdentifier" : "c:@kCGImageDestinationOrientation"
  },
  "title" : "kCGImageDestinationOrientation"
}
-->

# kCGImageDestinationOrientation

The orientation of the image, specified as an EXIF value in the range 1 to 8.

```
let kCGImageDestinationOrientation: CFString
```

## Discussion

The value of this key must be a <doc://com.apple.documentation/documentation/CoreFoundation/CFNumber>, and the number must be an integer in the range `1`–`8`. For more information about the meaning of each number, see the orientation field in the EXIF specification.

This option is mutually exclusive with [`kCGImageDestinationMetadata`](/documentation/ImageIO/kCGImageDestinationMetadata).

---

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)