9/9/2023 0 Comments Mac image metadata editor![]() ![]() ![]() Here is how I save my file (where img is an NSImage instance without metadata and self.cachedMetadata is the dictionary read from the initial image): NSBitmapImageRep *rep = ] However, I couldn't find out how to write this metadata back to a newly created NSImage (or to an image file). ![]() This copies all the metadata of the image file to a dictionary, and it works faily well. NSDictionary *props = (_bridge_transfer NSDictionary *) CGImageSourceCopyPropertiesAtIndex(source, 0, NULL) source = CGImageSourceCreateWithURL((_bridge CFURLRef)url, NULL) I am creating a photo editing app, and so far I've managed to read the metadata from image files successfully (after getting an answer to this question: Reading Camera data from EXIF while opening NSImage on OS X). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |