---
title: applyOrientationProperty
framework: coreimage
role: symbol
role_heading: Type Property
path: coreimage/ciimageoption/applyorientationproperty
---

# applyOrientationProperty

The key for transforming an image according to orientation metadata.

## Declaration

```swift
static let applyOrientationProperty: CIImageOption
```

## Discussion

Discussion Images can contain metadata that reveals the orientation at capture time.  You can load this metadata into CIImage with imageWithContentsOfURL: or init(data:) when the captured image contains orientation metadata.  Use any of the initWith:options: methods if the properties (NSDictionary of metadata properties) option is also provided. If the value of this key is true, then calls to imageWithContentsOfURL:options: and imageWithData:options: will return the image transformed according to its orientation metadata.

## See Also

### Type Properties

- [auxiliaryDepth](coreimage/ciimageoption/auxiliarydepth.md)
- [auxiliaryDisparity](coreimage/ciimageoption/auxiliarydisparity.md)
- [auxiliaryHDRGainMap](coreimage/ciimageoption/auxiliaryhdrgainmap.md)
- [auxiliaryPortraitEffectsMatte](coreimage/ciimageoption/auxiliaryportraiteffectsmatte.md)
- [auxiliarySemanticSegmentationGlassesMatte](coreimage/ciimageoption/auxiliarysemanticsegmentationglassesmatte.md)
- [auxiliarySemanticSegmentationHairMatte](coreimage/ciimageoption/auxiliarysemanticsegmentationhairmatte.md)
- [auxiliarySemanticSegmentationSkinMatte](coreimage/ciimageoption/auxiliarysemanticsegmentationskinmatte.md)
- [auxiliarySemanticSegmentationSkyMatte](coreimage/ciimageoption/auxiliarysemanticsegmentationskymatte.md)
- [auxiliarySemanticSegmentationTeethMatte](coreimage/ciimageoption/auxiliarysemanticsegmentationteethmatte.md)
- [cacheImmediately](coreimage/ciimageoption/cacheimmediately.md)
- [colorSpace](coreimage/ciimageoption/colorspace.md)
- [expandToHDR](coreimage/ciimageoption/expandtohdr.md)
- [nearestSampling](coreimage/ciimageoption/nearestsampling.md)
- [properties](coreimage/ciimageoption/properties.md)
- [providerTileSize](coreimage/ciimageoption/providertilesize.md)
