Is a JPG / PNG file to write a UIImage and then add metadata? I know that you can use it:
writeImageDataToSavedPhotosAlbum: metadata: the block which completes
to do this in the saved photo, but you can directly access a file How do I can not find a way to do this. I know that UIImagePNGRepresentation () and UIImageJPGRrepresentation () will give you NSData that you can use to write the file, but there is no way to add / change metadata in the file.
Any thoughts?
It seems.
You can use the ImageIO framework to add metadata to a UIImage. You can create a CGImageDestination object from a UIImage, add metadata by using CGImageDestinationSetProperties and after that the raw data (which is compressed Image and metadata included).
Comments
Post a Comment