Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 45FB5FB8F for ; Wed, 10 Apr 2013 10:18:18 +0000 (UTC) Received: (qmail 78919 invoked by uid 500); 10 Apr 2013 10:18:18 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 78847 invoked by uid 500); 10 Apr 2013 10:18:16 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 78793 invoked by uid 99); 10 Apr 2013 10:18:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Apr 2013 10:18:15 +0000 Date: Wed, 10 Apr 2013 10:18:15 +0000 (UTC) From: =?utf-8?Q?S=C3=A9bastien_BUREL_=28JIRA=29?= To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-2896) Multipart exif tags are not written correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-2896?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1362765= 4#comment-13627654 ]=20 S=C3=A9bastien BUREL commented on CB-2896: ------------------------------------- Hello, I need to get the Exif info on the jpeg at the server side and i fall in th= is bug. I first tried to find a fix but searching in apple documentation i found so= mething simpliest. I very new to IOS and cordova but i would like to share the way i do it: instead of CDVJpegHeaderWriter* exifWriter =3D [[CDVJpegHeaderWriter alloc] init]; NSString* headerstring =3D [exifWriter createExifAPP1:[info objectForKey= :@"UIImagePickerControllerMediaMetadata"]]; [exifWriter spliceExifBlockIntoJpeg:data withExifBlock:headerstring]; i do NSDictionary *metadata =3D [info objectForKey:@"UIImagePickerControllerMe= diaMetadata"]; if (metadata) { CGImageSourceRef sourceImage =3D CGImageSourceCreateWithData((__bridge_r= etained CFDataRef)data, NULL); CFStringRef sourceType =3D CGImageSourceGetType(sourceImage); =20 CGImageDestinationRef destinationImage =3D CGImageDestinationCreateWithD= ata((__bridge CFMutableDataRef)data, sourceType, 1, NULL); CGImageDestinationAddImageFromSource(destinationImage, sourceImage, 0, (= __bridge CFDictionaryRef)metadata); CGImageDestinationFinalize(destinationImage); =20 CFRelease(sourceImage); CFRelease(destinationImage); } Sebastien =20 > Multipart exif tags are not written correctly > --------------------------------------------- > > Key: CB-2896 > URL: https://issues.apache.org/jira/browse/CB-2896 > 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 exi= f string which is of the correct size (and therefore is not reported as an = error) but cannot be read back out. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira