• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CGImage failed to write Exif Auxiliary metadata to image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CGImage failed to write Exif Auxiliary metadata to image


  • Subject: CGImage failed to write Exif Auxiliary metadata to image
  • From: Rawitat Pulam <email@hidden>
  • Date: Sun, 10 Aug 2008 21:00:29 +0700

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@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: CGImage failed to write Exif Auxiliary metadata to image
      • From: "Ken Ferry" <email@hidden>
  • Prev by Date: KVC beginners question
  • Next by Date: Re: Core Data versioning woes
  • Previous by thread: Re: Core Data, dynamic accessors and compiler warnings
  • Next by thread: Re: CGImage failed to write Exif Auxiliary metadata to image
  • Index(es):
    • Date
    • Thread