I am trying to update a UIImage using a geotag. I looked at Saving geotagging information with photos on iOS4.1 , where I found a link to Category NSMutableDDictionary + ImageMetadata . However, I do not want to save to the photo album, but pass UIImage .
The following code looked like it was making too many copies of the image and required the binding of all these frameworks: CoreImage, AssetsLibrary, CoreMedia, ImageIO.
Is there something more efficient that UIImage CIImage CGImage UIImage - UIImage that can take the NSDictionary properties needed to set EXIF ββdata?
- (UIImage *)updateImage:(UIImage *)image location:(CLLocation *)location dateOriginal:(NSDate *)dateOriginal { NSMutableDictionary *properties = [NSMutableDictionary dictionaryWithDictionary:[image.CIImage properties]];
source share