iOS UIImage taken in portrait_upside_down has a wrong imageOrientation value

64 Views Asked by At

The photos, taken in portrait upside-down mode with iOS device, and after that copied to Xcode project.

let testImage = UIImage(named: "4.JPG")
print(testImage!.imageOrientation.rawValue)

UIImageOrientation value always results 0 (.up orientation), though it should be .left.

And I've rechecked the images with EXIF viewers - it should be .left. Any ideas why could this happen?

Related question

0

There are 0 best solutions below