cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S├ębastien BUREL (JIRA) <>
Subject [jira] [Commented] (CB-2896) Multipart exif tags are not written correctly
Date Wed, 10 Apr 2013 10:18:15 GMT


S├ębastien BUREL commented on CB-2896:

I need to get the Exif info on the jpeg at the server side and i fall in this bug.
I first tried to find a fix but searching in apple documentation i found something simpliest.
I very new to IOS and cordova but i would like to share the way i do it:

instead of
   CDVJpegHeaderWriter* exifWriter = [[CDVJpegHeaderWriter alloc] init];
   NSString* headerstring = [exifWriter createExifAPP1:[info objectForKey:@"UIImagePickerControllerMediaMetadata"]];
   [exifWriter spliceExifBlockIntoJpeg:data withExifBlock:headerstring];

i do
  NSDictionary *metadata = [info objectForKey:@"UIImagePickerControllerMediaMetadata"];
  if (metadata) {
   CGImageSourceRef sourceImage = CGImageSourceCreateWithData((__bridge_retained CFDataRef)data,
   CFStringRef sourceType = CGImageSourceGetType(sourceImage);
   CGImageDestinationRef destinationImage = CGImageDestinationCreateWithData((__bridge CFMutableDataRef)data,
sourceType, 1, NULL);
   CGImageDestinationAddImageFromSource(destinationImage, sourceImage, 0, (__bridge CFDictionaryRef)metadata);


> Multipart exif tags are not written correctly
> ---------------------------------------------
>                 Key: CB-2896
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.6.0
>            Reporter: Lorin Beer
>            Assignee: Lorin Beer
>            Priority: Critical
>             Fix For: 2.6.0
> multi-part (complex) tags are not written correctly. this leads to an exif string which
is of the correct size (and therefore is not reported as an error) but cannot be read back

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message