views:

44

answers:

1

Hello All,

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

A: 

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

Peter Hosey
Hello Peter, Can you please provide some source code
Saurabh