<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIImageOption/applyOrientationProperty",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Core Image",
      "CoreImage"
    ],
    "preciseIdentifier" : "c:@kCIImageApplyOrientationProperty"
  },
  "title" : "applyOrientationProperty"
}
-->

# applyOrientationProperty

The key for transforming an image according to orientation metadata.

```
static let applyOrientationProperty: CIImageOption
```

## Discussion

Images can contain metadata that reveals the orientation at capture time.  You can load this metadata into [`CIImage`](/documentation/CoreImage/CIImage) with [`imageWithContentsOfURL:`](/documentation/CoreImage/CIImage/imageWithContentsOfURL:) or [`init(data:)`](/documentation/CoreImage/CIImage/init(data:)) when the captured image contains orientation metadata.  Use any of the `initWith:options:` methods if the [`properties`](/documentation/CoreImage/CIImageOption/properties) (<doc://com.apple.documentation/documentation/Foundation/NSDictionary> of metadata properties) option is also provided.

If the value of this key is true, then calls to [`imageWithContentsOfURL:options:`](/documentation/CoreImage/CIImage/imageWithContentsOfURL:options:) and [`imageWithData:options:`](/documentation/CoreImage/CIImage/imageWithData:options:) will return the image transformed according to its orientation metadata.

---

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)