---
title: kCGImageDestinationOrientation
framework: imageio
role: symbol
role_heading: Global Variable
path: imageio/kcgimagedestinationorientation
---

# kCGImageDestinationOrientation

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

## Declaration

```swift
let kCGImageDestinationOrientation: CFString
```

## Discussion

Discussion The value of this key must be a 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.

## See Also

### Configuring the Image Behaviors

- [kCGImageDestinationLossyCompressionQuality](imageio/kcgimagedestinationlossycompressionquality.md)
- [kCGImageDestinationBackgroundColor](imageio/kcgimagedestinationbackgroundcolor.md)
- [kCGImageDestinationDateTime](imageio/kcgimagedestinationdatetime.md)
- [kCGImageDestinationEmbedThumbnail](imageio/kcgimagedestinationembedthumbnail.md)
- [kCGImageDestinationImageMaxPixelSize](imageio/kcgimagedestinationimagemaxpixelsize.md)
- [kCGImageDestinationMetadata](imageio/kcgimagedestinationmetadata.md)
- [kCGImageDestinationMergeMetadata](imageio/kcgimagedestinationmergemetadata.md)
- [kCGImageDestinationOptimizeColorForSharing](imageio/kcgimagedestinationoptimizecolorforsharing.md)
- [kCGImageDestinationPreserveGainMap](imageio/kcgimagedestinationpreservegainmap.md)
- [kCGImageMetadataShouldExcludeGPS](imageio/kcgimagemetadatashouldexcludegps.md)
- [kCGImageMetadataShouldExcludeXMP](imageio/kcgimagemetadatashouldexcludexmp.md)
