• 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
setting exif metadata with ApplicationServices framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setting exif metadata with ApplicationServices framework


  • Subject: setting exif metadata with ApplicationServices framework
  • From: "C Sandeep" <email@hidden>
  • Date: Fri, 22 Feb 2008 15:57:33 -0500

Hi all,

 Recently I have been playing with adding exif data to image files on disk.
I found this nice blog <http://caffeinatedcocoa.com/blog/?p=7> entry which
shows how. However, Im not able to set aperture, ISO and shutter speeds from
my code, here (showing literal values):

   ......
    [exifDict setValue: @"800"
                forKey:(NSString *) kCGImagePropertyExifISOSpeedRatings];

    [exifDict setValue: @"28/5"
                                        forKey: (NSString *)
kCGImagePropertyExifApertureValue];

    [exifDict setValue:@"-1507/1140"
                forKey: (NSString *) kCGImagePropertyExifShutterSpeedValue];

    NSMutableDictionary *metaData = [NSMutableDictionary dictionary];
    [metaData setObject: exifDict forKey:(NSString
*)kCGImagePropertyExifDictionary];
    CGImageDestinationAddImageFromSource(destination,source,0,
(CFDictionaryRef) metaData);
    CGImageDestinationFinalize(destination);
   .....

 However I was able to set the kCGImagePropertyTIFFMake property. Are the
values for these properties of the wrong format ? How does one set these
exif meta data ? Thanks.

- Sandeep
_______________________________________________

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: setting exif metadata with ApplicationServices framework
      • From: "C Sandeep" <email@hidden>
  • Prev by Date: Re: -outlineView:heightOfRowByItem: gets an item of NULL??
  • Next by Date: Re: controllers, delegates, retain, release ...
  • Previous by thread: Re: Saving Unchanged Core Data Documents
  • Next by thread: Re: setting exif metadata with ApplicationServices framework
  • Index(es):
    • Date
    • Thread