Re: Getting NSDate from EXIF of a image

2009-03-03 Thread Nathan Vander Wilt
On Mar 2, 2009, at 8:48 PM, Jushin wrote: I found that in order to convert NSString format of date to NSDate, we need timezone. But, EXIF doesn't support timezone unless GPS tags exist. Yes, this is an unfortunate fact. Depending on what you need the date for, you may need to let the user c

Re: Getting NSDate from EXIF of a image

2009-03-02 Thread Jushin
I found that in order to convert NSString format of date to NSDate, we need timezone. But, EXIF doesn't support timezone unless GPS tags exist. So, here is what I have come up with: NSDictionary *metadata = (NSDictionary *) CGImageSourceCopyPropertiesAtIndex(source, 0, NULL); NSMutableDictionary *

Getting NSDate from EXIF of a image

2009-03-02 Thread Jushin
I need to get time and date from EXIF of a image. Following is the code snippet I used: NSDictionary *metadata = (NSDictionary *) CGImageSourceCopyPropertiesAtIndex(source, 0, NULL); NSMutableDictionary *muMetadata = [[metadata mutableCopy] autorelease]; [metadata release]; NSMutableDicti