Hi,

I'm having problems trying to write photo metadata. Actually, I want to copy all metadata I could get via the CGImageSourceCopyPropertiesAtIndex function to the destination image (CGImageDestinationRef).

Reading the metadata isn't a problem. I could get all that are available. Simple NSLog of the properties confirmed this.

The problem is when writing the metadata to the destination image. I tried both CGImageDestinationAddImage and use the properties as the option dictionary, and also tried CGImageDestinationSetProperties. Both didn't work. The metadata in the ExifAux dictionary of the properties, read correctly from the function mentioned above, failed to be written to the output image. I happen to need one of the metadata in that dictionary (LensModel).

I looked in the CGImage Properties, it should support the Exif Auxiliary metadata and even have key defined for lens model. However, somehow it can't write the output image with that dictionary.

I'm using Mac OS X 10.5 and ImageIO framework 2.0.2 and already have Xcode set the project so it use 10.5 SDK, not 10.4.

Is there anyway I could overcome this? Or is it a limitation of current CF/ImageIO framework?

Best regards,
Rawitat Pulam

------------------------------------------------------------
Rawitat Pulam
Lecturer
Department of Computing, Faculty of Science
Silpakorn University, Sanam Chandra Palace Campus
Nakornpathom, Thailand

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to