Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. let attachments = NSMutableDictionary(dictionary: CMCopyDictionaryOfAttachments(nil, buffer, kCMAttachmentMode_ShouldPropagate) as! NSDictionary)
  2.  
  3. let exif = NSMutableDictionary(dictionary: attachments[kCGImagePropertyExifDictionary] as! NSDictionary)
  4.  
  5. exif[kCGImagePropertyExifMakerNote] = "Blah blah"
  6.  
  7. attachments[kCGImagePropertyExifDictionary] = exif
  8.  
  9. exiftool photo.JPG | grep -i maker
  10.  
  11. exiftool photo.JPG | grep -i blah
  12.  
  13. let comment = ["My custom setting": "blah"]
  14.  
  15. exif[kCGImagePropertyExifUserComment] = comment
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement