---
title: "oriented(forExifOrientation:)"
framework: coreimage
role: symbol
role_heading: Instance Method
path: "coreimage/ciimage/oriented(forexiforientation:)"
---

# oriented(forExifOrientation:)

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

## Declaration

```swift
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

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

## Discussion

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:) method.

## See Also

### Creating an Image by Modifying an Existing Image

- [applyingFilter(_:parameters:)](coreimage/ciimage/applyingfilter(_:parameters:).md)
- [applyingFilter(_:)](coreimage/ciimage/applyingfilter(_:).md)
- [transformed(by:)](coreimage/ciimage/transformed(by:).md)
- [transformed(by:highQualityDownsample:)](coreimage/ciimage/transformed(by:highqualitydownsample:).md)
- [cropped(to:)](coreimage/ciimage/cropped(to:).md)
- [clampedToExtent()](coreimage/ciimage/clampedtoextent().md)
- [clamped(to:)](coreimage/ciimage/clamped(to:).md)
- [composited(over:)](coreimage/ciimage/composited(over:).md)
- [convertingWorkingSpaceToLab()](coreimage/ciimage/convertingworkingspacetolab().md)
- [convertingLabToWorkingSpace()](coreimage/ciimage/convertinglabtoworkingspace().md)
- [matchedToWorkingSpace(from:)](coreimage/ciimage/matchedtoworkingspace(from:).md)
- [matchedFromWorkingSpace(to:)](coreimage/ciimage/matchedfromworkingspace(to:).md)
- [premultiplyingAlpha()](coreimage/ciimage/premultiplyingalpha().md)
- [unpremultiplyingAlpha()](coreimage/ciimage/unpremultiplyingalpha().md)
- [settingAlphaOne(in:)](coreimage/ciimage/settingalphaone(in:).md)
