You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Stephen McKamey (JIRA)" <ji...@apache.org> on 2012/08/28 03:48:07 UTC

[jira] [Created] (CB-1285) Include EXIF metadata in image upload

Stephen McKamey created CB-1285:
-----------------------------------

             Summary: 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: Shazron Abdullah


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

Re: [jira] [Commented] (CB-1285) Include EXIF metadata in image upload

Posted by Lorin Beer <lo...@gmail.com>.
>Can you elaborate on what you mean by...

I was speaking to George's issue directly, once the image is returned from
native, it would be up to the js to decode the exif data from the jpeg
header.

No a server is not required, and yes you can take a picture offline.

On Wed, Oct 31, 2012 at 1:10 PM, Jesse MacFadyen (JIRA) <ji...@apache.org>wrote:

>
>     [
> https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13488182#comment-13488182]
>
> Jesse MacFadyen commented on CB-1285:
> -------------------------------------
>
> Can you elaborate on what you mean by: "writing/using a serverside jpeg
> exif parser"
>
> Is a server required? Can I take a picture offline?
>
> > 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
> >             Fix For: 2.3.0
> >
> >
> > 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
>

Re: [jira] [Commented] (CB-1285) Include EXIF metadata in image upload

Posted by Jesse <pu...@gmail.com>.
Questions inline..

On Wed, Oct 31, 2012 at 12:33 AM, Lorin Beer <lo...@gmail.com> wrote:
> Hi George,
>
> you should have access to the original date and time, as well as all the
> other metadata, through the solution I posted in CB-1246.
>
> The solution we decided to pursue for CB-1285 was to properly embed the
> metadata in exif format within the jpeg header as per  the exif header
> standard. This would mean writing/using a serverside jpeg exif parser to

What do you mean serverside? Can I only take pictures online?

> read the data back out. As Shaz mentioned, writing an Exif Reader for unit
> tests may be a possibility, but only if such a project would provide
> significant utility to the Cordova community. For validation
> programatically, I'd rather hack together tests using an existing reader,
> which may have an incompatible license, making it impossible to include
> into Cordova Core.
>
> If you have any questions about how to use the solution posted in CB-1246,
> please ask!
>
> -Lorin
>
> On Wed, Oct 31, 2012 at 12:25 AM, Shazron Abdullah (JIRA)
> <ji...@apache.org>wrote:
>
>>
>>     [
>> https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487601#comment-13487601]
>>
>> Shazron Abdullah commented on CB-1285:
>> --------------------------------------
>>
>> Lorin can clarify, but as I understand it, this fix is to incorporate the
>> original image's EXIF _into_ the Cordova created image.
>>
>> In the process of doing so, Lorin has created an EXIF writer (the original
>> EXIF data is passed to us from the camera viewcontroller in a NSDictionary).
>>
>> To get the EXIF data separately, there is no support in the current API. I
>> reckon to do so Lorin would have to include an EXIF Reader (and he may do
>> so for unit tests), and someone can create a separate plugin for that
>> feature that you want.
>>
>> > 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
>> >             Fix For: 2.3.0
>> >
>> >
>> > 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
>>



-- 
@purplecabbage
risingj.com

Re: [jira] [Commented] (CB-1285) Include EXIF metadata in image upload

Posted by Lorin Beer <lo...@gmail.com>.
Hi George,

you should have access to the original date and time, as well as all the
other metadata, through the solution I posted in CB-1246.

The solution we decided to pursue for CB-1285 was to properly embed the
metadata in exif format within the jpeg header as per  the exif header
standard. This would mean writing/using a serverside jpeg exif parser to
read the data back out. As Shaz mentioned, writing an Exif Reader for unit
tests may be a possibility, but only if such a project would provide
significant utility to the Cordova community. For validation
programatically, I'd rather hack together tests using an existing reader,
which may have an incompatible license, making it impossible to include
into Cordova Core.

If you have any questions about how to use the solution posted in CB-1246,
please ask!

-Lorin

On Wed, Oct 31, 2012 at 12:25 AM, Shazron Abdullah (JIRA)
<ji...@apache.org>wrote:

>
>     [
> https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487601#comment-13487601]
>
> Shazron Abdullah commented on CB-1285:
> --------------------------------------
>
> Lorin can clarify, but as I understand it, this fix is to incorporate the
> original image's EXIF _into_ the Cordova created image.
>
> In the process of doing so, Lorin has created an EXIF writer (the original
> EXIF data is passed to us from the camera viewcontroller in a NSDictionary).
>
> To get the EXIF data separately, there is no support in the current API. I
> reckon to do so Lorin would have to include an EXIF Reader (and he may do
> so for unit tests), and someone can create a separate plugin for that
> feature that you want.
>
> > 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
> >             Fix For: 2.3.0
> >
> >
> > 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
>

[jira] [Commented] (CB-1285) Include EXIF metadata in image upload

Posted by "Jesse MacFadyen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13488182#comment-13488182 ] 

Jesse MacFadyen commented on CB-1285:
-------------------------------------

Can you elaborate on what you mean by: "writing/using a serverside jpeg exif parser"

Is a server required? Can I take a picture offline?
                
> 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
>             Fix For: 2.3.0
>
>
> 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

[jira] [Commented] (CB-1285) Include EXIF metadata in image upload

Posted by "Stephen McKamey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444282#comment-13444282 ] 

Stephen McKamey commented on CB-1285:
-------------------------------------

I've been using navigator.camera.getPicture with Camera.DestinationType.FILE_URI and a switch on sourceType between Camera.PictureSourceType.CAMERA & Camera.PictureSourceType.PHOTOLIBRARY.
                
> 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: Shazron Abdullah
>
> 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

[jira] [Commented] (CB-1285) Include EXIF metadata in image upload

Posted by "Lorin Beer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13457399#comment-13457399 ] 

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

I took a look at this and the related issues.

We can provide the exif metadata in a few ways:

1. provide the metadata as a json string to the success callback
2. overwrite the Cordova created image with the metadata of the original.

I believe Android saves the metadata, and restores it after it has been stripped.

The simplest way is 1, but this changes the expected return value of the 'data' field in the success callback, which is the images path.

Before I implement and test, anyone have any suggestions on which method would be best?
                
> 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
>             Fix For: 2.2.0
>
>
> 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

[jira] [Commented] (CB-1285) Include EXIF metadata in image upload

Posted by "Stephen McKamey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444362#comment-13444362 ] 

Stephen McKamey commented on CB-1285:
-------------------------------------

I haven't been because I do want the original image. Here some example code which reproduces it for me.
{code}
var useCamera = !!confirm('Use camera?');
navigator.camera.getPicture(
    onSuccess,
    onFail,
    {
        correctOrientation: false,
        destinationType: Camera.DestinationType.FILE_URI,
        encodingType: Camera.EncodingType.JPEG,
        quality: 100,
        saveToPhotoAlbum: useCamera,
        sourceType: useCamera ? Camera.PictureSourceType.CAMERA : Camera.PictureSourceType.PHOTOLIBRARY
    });
{code}

No matter if I click OK or Cancel, the EXIF is stripped except for the Orientation tag.
                
> 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: Shazron Abdullah
>
> 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

[jira] [Commented] (CB-1285) Include EXIF metadata in image upload

Posted by "George Burrows (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487596#comment-13487596 ] 

George Burrows commented on CB-1285:
------------------------------------

Hi Shazron,

Will it be possible to access the EXIF data from within PhoneGAP using option 2 or will this only be available when processing the image on the server side?

I need to get the original date of the image as per CB-1246

Thanks,

George
                
> 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
>             Fix For: 2.3.0
>
>
> 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

[jira] [Commented] (CB-1285) Include EXIF metadata in image upload

Posted by "Stephen McKamey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444095#comment-13444095 ] 

Stephen McKamey commented on CB-1285:
-------------------------------------

As a workaround, is there a way to get the original untouched image bits via Cordova? i.e. not resized at all?

                
> 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: Shazron Abdullah
>
> 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

[jira] [Updated] (CB-1285) Include EXIF metadata in image upload

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-1285:
---------------------------------

    Fix Version/s: 2.2.0

Bumping to 2.2.0 for investigation in relation to CB-1246
                
> 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: Shazron Abdullah
>             Fix For: 2.2.0
>
>
> 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

[jira] [Comment Edited] (CB-1285) Include EXIF metadata in image upload

Posted by "Stephen McKamey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444362#comment-13444362 ] 

Stephen McKamey edited comment on CB-1285 at 8/30/12 6:56 AM:
--------------------------------------------------------------

I haven't been specifying them because I do want the original image. Here is some example code which reproduces it for me.
{code}
var useCamera = !!confirm('Use camera?');
navigator.camera.getPicture(
    onSuccess,
    onFail,
    {
        correctOrientation: false,
        destinationType: Camera.DestinationType.FILE_URI,
        encodingType: Camera.EncodingType.JPEG,
        quality: 100,
        saveToPhotoAlbum: useCamera,
        sourceType: useCamera ? Camera.PictureSourceType.CAMERA : Camera.PictureSourceType.PHOTOLIBRARY
    });
{code}

No matter if I click OK or Cancel, the EXIF is stripped except for the Orientation tag.
                
      was (Author: mckamey):
    I haven't been because I do want the original image. Here some example code which reproduces it for me.
{code}
var useCamera = !!confirm('Use camera?');
navigator.camera.getPicture(
    onSuccess,
    onFail,
    {
        correctOrientation: false,
        destinationType: Camera.DestinationType.FILE_URI,
        encodingType: Camera.EncodingType.JPEG,
        quality: 100,
        saveToPhotoAlbum: useCamera,
        sourceType: useCamera ? Camera.PictureSourceType.CAMERA : Camera.PictureSourceType.PHOTOLIBRARY
    });
{code}

No matter if I click OK or Cancel, the EXIF is stripped except for the Orientation tag.
                  
> 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: Shazron Abdullah
>
> 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

[jira] [Commented] (CB-1285) Include EXIF metadata in image upload

Posted by "Stephen McKamey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13457439#comment-13457439 ] 

Stephen McKamey commented on CB-1285:
-------------------------------------

Excellent! That will be much appreciated. Thanks.
                
> 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
>             Fix For: 2.2.0
>
>
> 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

[jira] [Commented] (CB-1285) Include EXIF metadata in image upload

Posted by "Stephen McKamey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13457408#comment-13457408 ] 

Stephen McKamey commented on CB-1285:
-------------------------------------

I think the general expectation is #2 as the returned images may have a life outside of Cordova. #1 would not only break existing usage but would cause external services to need to understand how to accept metadata as additional data outside of the image bits. Other iPhone image apps include metadata directly in the file as EXIF.
                
> 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
>             Fix For: 2.2.0
>
>
> 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

[jira] [Updated] (CB-1285) Include EXIF metadata in image upload

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-1285:
---------------------------------

    Fix Version/s:     (was: 2.3.0)
                   2.4.0

This has been postponed to 2.4.0
                
> 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
>             Fix For: 2.4.0
>
>
> 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

[jira] [Commented] (CB-1285) Include EXIF metadata in image upload

Posted by "Lorin Beer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13457435#comment-13457435 ] 

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

that was my thinking as well, 

I will implement number 2
                
> 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
>             Fix For: 2.2.0
>
>
> 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

[jira] [Commented] (CB-1285) Include EXIF metadata in image upload

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487601#comment-13487601 ] 

Shazron Abdullah commented on CB-1285:
--------------------------------------

Lorin can clarify, but as I understand it, this fix is to incorporate the original image's EXIF _into_ the Cordova created image.

In the process of doing so, Lorin has created an EXIF writer (the original EXIF data is passed to us from the camera viewcontroller in a NSDictionary).

To get the EXIF data separately, there is no support in the current API. I reckon to do so Lorin would have to include an EXIF Reader (and he may do so for unit tests), and someone can create a separate plugin for that feature that you want.
                
> 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
>             Fix For: 2.3.0
>
>
> 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

[jira] [Assigned] (CB-1285) Include EXIF metadata in image upload

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah reassigned CB-1285:
------------------------------------

    Assignee: Lorin Beer  (was: Shazron Abdullah)
    
> 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
>             Fix For: 2.2.0
>
>
> 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

[jira] [Commented] (CB-1285) Include EXIF metadata in image upload

Posted by "Lorin Beer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13488243#comment-13488243 ] 

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

ugh, replied to the list again :(

>Can you elaborate on what you mean by...

I was speaking to George's issue directly, once the image is returned from native, it would be up to the js to decode the exif data from the jpeg header.

No a server is not required, and yes you can take a picture offline.
                
> 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
>             Fix For: 2.3.0
>
>
> 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

[jira] [Updated] (CB-1285) Include EXIF metadata in image upload

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-1285:
---------------------------------

    Fix Version/s:     (was: 2.2.0)
                   2.3.0

Won't make 2.2.0. Punting to 2.3.0 so we can get adequate user testing (plus unit tests) - to ensure images are not corrupt etc. Unit tests for image corruption detection may require a EXIF reader as well, or we could simply instantiate the UIImage and see if UIKit complains.
                
> 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
>             Fix For: 2.3.0
>
>
> 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

[jira] [Commented] (CB-1285) Include EXIF metadata in image upload

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13443863#comment-13443863 ] 

Shazron Abdullah commented on CB-1285:
--------------------------------------

Yes this is the result of resizing the image, see CB-1246
                
> 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: Shazron Abdullah
>
> 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

[jira] [Commented] (CB-1285) Include EXIF metadata in image upload

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444345#comment-13444345 ] 

Shazron Abdullah commented on CB-1285:
--------------------------------------

Looking at the Camera API code, if you don't set targetWidth and targetHeight, it will not scale the image. Are you setting those options?
                
> 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: Shazron Abdullah
>
> 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

[jira] [Commented] (CB-1285) Include EXIF metadata in image upload

Posted by "Lorin Beer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487871#comment-13487871 ] 

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

sent my reply to the whole list rather than replying here.

Hi George,

you should have access to the original date and time, as well as all the other metadata, through the solution I posted in CB-1246.

The solution we decided to pursue for CB-1285 was to properly embed the metadata in exif format within the jpeg header as per  the exif header standard. This would mean writing/using a serverside jpeg exif parser to read the data back out. As Shaz mentioned, writing an Exif Reader for unit tests may be a possibility, but only if such a project would provide significant utility to the Cordova community. For validation programatically, I'd rather hack together tests using an existing reader, which may have an incompatible license, making it impossible to include into Cordova Core.

If you have any questions about how to use the solution posted in CB-1246, please ask!
                
> 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
>             Fix For: 2.3.0
>
>
> 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

[jira] [Commented] (CB-1285) Include EXIF metadata in image upload

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13443865#comment-13443865 ] 

Shazron Abdullah commented on CB-1285:
--------------------------------------

read image metadata: https://developer.apple.com/library/ios/#qa/qa1622/_index.html - so possibly we can write it back as well if needed: http://stackoverflow.com/questions/5125323/problem-setting-exif-data-for-an-image
                
> 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: Shazron Abdullah
>
> 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

[jira] [Commented] (CB-1285) Include EXIF metadata in image upload

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444242#comment-13444242 ] 

Shazron Abdullah commented on CB-1285:
--------------------------------------

What API are you using to capture the image? The [Capture API|http://docs.phonegap.com/en/2.0.0/cordova_media_capture_capture.md.html#Capture] or the [Camera API | http://docs.phonegap.com/en/2.0.0/cordova_camera_camera.md.html#Camera]?
                
> 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: Shazron Abdullah
>
> 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