<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIImage/oriented(forExifOrientation:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIImage(im)imageByApplyingOrientation:"
  },
  "title" : "oriented(forExifOrientation:)"
}
-->

# oriented(forExifOrientation:)

Returns a new image created by transforming the original image to the specified EXIF orientation.

```
func oriented(forExifOrientation orientation: Int32) -> CIImage
```

## Parameters

`orientation`

An integer specifying an image orientation according to the EXIF specification. For details, see <doc://com.apple.documentation/documentation/ImageIO/kCGImagePropertyOrientation>.

## Return Value

An image object representing the result of rotating or mirroring the image to the target orientation.

## Discussion

This method determines and then applies the transformation needed to reorient the image to the specified orientation. If you plan to also apply other transformations, you can retrieve the transformation this method would use by calling the [`orientationTransform(forExifOrientation:)`](/documentation/CoreImage/CIImage/orientationTransform(forExifOrientation:)) method.

---

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)