I have a problem i got a UIImage from imagePicker (camera not library) but when i write it to file with [UIImageJPEGRepresentation writeToFile: atomically:] i'm loosing orientation data(all images are in landscape), i used some code with image transformation, but it take too long about 1,5 - 2 sec per image, my question is how to not loose orientation ? Maybe i can write it to EXIF data ? Thx for help.
EDIT: Thx to Jonathan Cichon, now i got a image orientation with UIImagePickerControllerMediaMetadata i got (Orientation = 6), but how to store it to jpg file ? (again i saved file with [UIImageJPEGRepresentation writeToFile: atomically:] proc)
Ok What I found in simple google search is as below from this link
Look at this post for information on how to store EXIF data. If i remember correctly you can use the UIImagePickerControllerMediaMetadata as it is. At least you should find all necassary orientation information in this dictionary to create your EXIF data.
Look at the best rated Answer of the linked post and replace the first line with