YosiFZ
YosiFZ

Reputation: 7900

UIImagePickerViewConroller get photos

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.

Upvotes: 0

Views: 70

Answers (2)

Lakitu
Lakitu

Reputation: 510

Try getting the UIImagePickerControllerEditedImagefrom the info dictionary

Upvotes: 0

Simon Lee
Simon Lee

Reputation: 22334

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.

Upvotes: 1

Related Questions