Search code examples
cocoaosx-snow-leopard

How to edit EXIF, IPTC and XMP metadata in cocoa?


I want to read and edit EXIF, IPTC and XMP metadata of an images using cocoa.

I can read the EXIF metadata using

NSBitmapImageRep * imageTest = [NSBitmapImageRep imageRepWithContentsOfFile:filePath] ;
  NSLog(@"Exif Data in %@ : %@",fileName, [imageTest valueForProperty:@"NSImageEXIFData"]) ;

How can I modify this data?

Thanks Saurabh


Solution

  • Use CGImageSource to read it in and CGImageDestination to write it back out.