Reputation: 7900
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
Reputation: 510
Try getting the UIImagePickerControllerEditedImage
from the info
dictionary
Upvotes: 0
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