0

I am using this mechanism to get photo from the photos library. the problem that i have is that photo i get from

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info

are vertical for all the photos, there is a way to rotate the images by the way the photos was taken, beacuse i want to show this photos in the screen but i get them in the opposite.

YosiFZ
  • 7,792
  • 21
  • 114
  • 221
  • 1
    I think you should check this thread: http://stackoverflow.com/questions/4989087/uiimagepickercontroller-returning-incorrect-image-orientation – Vinh Nov 17 '11 at 09:29

2 Answers2

1

I had the same problem in the past!! You need to use the EXIF information stored in the photo and rotate based on the orientation specified when taking the picture.

There is a great article here with full source code.

Simon Lee
  • 22,304
  • 4
  • 41
  • 45
0

Try getting the UIImagePickerControllerEditedImagefrom the info dictionary

Lakitu
  • 490
  • 4
  • 10