0

I'm working on PocketWallet application in which I'm taking any type of card rear and front images and then save them in Database. My problem is that when I take image in portrait mode the rotation of images showing well in my resulting view. But when I take image in landscape mode then the images rotate in 90 degrees. How can I set the rotation of the image in portrait mode after taking in landscape. I'm using UIimagePickerCamera for taking image. please help me......thanks in advance

DD_
  • 7,230
  • 11
  • 38
  • 59
Bilal hussain
  • 105
  • 1
  • 3
  • 9

1 Answers1

0

If you want to find out if your image was taken in landscape mode, take a look at the imageOrientation property of UIImage. The UIImagePickerCamera will set that flag correctly. It sounds like your app simply needs to make a correction to it. This post gives you a method for how to do that.

Community
  • 1
  • 1
mprivat
  • 21,582
  • 4
  • 54
  • 64