[ 
https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13596787#comment-13596787
 ] 

Lorin Beer commented on CB-1285:
--------------------------------

Update on this:

there shouldn't be any impediment to getting full Exif header support online 
for 2.6.0.

In the meantime, however, here is a workaround for getting all the metadata 
that the ImagePickerController provides:

In the 'cb1285_hack' [branch of my fork of the cordova-ios 
repo|https://github.com/lorinbeer/cordova-ios/tree/cb1285_hack] I've created 
minor adjustment to the return values of the ImagePickerController function, 
viewable 
[here|https://github.com/lorinbeer/cordova-ios/commit/a0ba48700c8e13f1d873ded361bf91a1a2271dce]
(https://github.com/lorinbeer/cordova-ios/commit/a0ba48700c8e13f1d873ded361bf91a1a2271dce)

This converts the metadata dictionary returned by UIImagePickerController to a 
json string, and returns it bundled with image url in the return value.

*Note: This breaks the expected return value of camera.getPicture()*

Instead of a string, the data returned is an array. The first element 
corresponds to the image url. The second element is a json string with all the 
image meta data. An Example usage can be found 
[here|https://github.com/lorinbeer/cordova-mobile-spec/tree/camdatahack] 
Specifically, [the getPictureWin function on line 61 of 
camera/index.html|https://github.com/lorinbeer/cordova-mobile-spec/blob/camdatahack/camera/index.html]

ping me if you need any other details.


                
> Include EXIF metadata in image upload
> -------------------------------------
>
>                 Key: CB-1285
>                 URL: https://issues.apache.org/jira/browse/CB-1285
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: iOS 5.1.1 (iPad 2 & iPhone 4)
>            Reporter: Stephen McKamey
>            Assignee: Lorin Beer
>
> Now that Cordova only supports iOS 4.2+, it would be great if it would 
> include the additional EXIF metadata which exists in original image files. 
> Currently this is all stripped. I've noticed a recent increased trend of iOS 
> apps declaring that they can gain access to EXIF data if the user permits 
> location information. If EXIF & geo data were passed through this would be a 
> huge gain for Cordova.
> Related: a similar issue (CB-295) was opened for Android and it sounds like 
> it was implemented. From the other issue, it sounded like it was a side 
> effect of resizing the image. If no resizing needs to occur (i.e., the 
> untouched original bits are desired), then perhaps this would help?

--
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: http://www.atlassian.com/software/jira

Reply via email to