I now can only read the exif information of images, but I have no way to modify the exif information of the picture, I can't solved, who can help me。thanks!
Asked
Active
Viewed 1,073 times
0
-
follow this link: https://stackoverflow.com/questions/37992611/swift-how-to-modify-exif-info-in-images-taken-from-mobile-camera – BuLB JoBs Dec 01 '17 at 11:45
1 Answers
0
SimpleExif is objective-c library allowing you to write UIImage along with its metadata(EXIF data), add creation date to UIImage, add location data to UIImage. It helps you to write exif metadata to an image (not the camera roll, just a UIImage or JPEG). This is just a handy wrapper around system functions to add some Exif information to UIImages in your app. It can be useful for apps manipulating photos. For example, you can add some thirg party photo editor and persist EXIF data with edited UIImage.
This library doesn't support getting Exif data from UIImage!
ExifContainer *container = [[ExifContainer alloc] init];
and populate it with all requred data:
[container addUserComment:@"A long time ago, in a galaxy far, far away"];
[container addCreationDate:[NSDate dateWithTimeIntervalSinceNow:-10000000]];
[container addLocation:locations[0]];
Then you can add Exif data to UIImage:
Data *imageData = [[UIImage imageNamed:@"DemoImage"] addExif:container];
Follow this link: SimpleExif

BuLB JoBs
- 841
- 4
- 20
-
Hello, through this method, I have not set the panorama of share to Facebook panorama. – chris yang Dec 05 '17 at 06:39
-