iPhone6 : GPS info stripped of from image captured by camera invoked from html5

We have a web page that lets users to upload an image. Users can select a file from library or take a photo.


Below is the html5 snippet:

<input type=file capture="camera" accept="image/*" value="select image">


When user clicks on "select image" and selects a file from photo library or icloud, the GPS info is retained in the image returned.

Whereas , if user choose to "take photo" and takes a photo with camera option, the image returned by camera does not have GPS info.


Is this a privacy feature ? Is there a user setting to turn off this behavior?

Already Location is allowed for camera. Other pictures taken with camera indepdently have GPS info in the image.


Pls help.

Replies

We are having the same issue. Did you ever find a solution to this problem?

Bumping this up once more. I'm using this code in a web app:

    <input type="file" 
           name="fileToUpload" 
           style="display:none;"
           id="bttn_shoot_photo" 
           onchange="ShootPhoto();" 
           accept="image/*" />

The user is duly prompted to upload a photo, or to use the camera. If "upload" is selected, and a photo from the mobile device's photo library is selected, then after upload the image has GPS data. On the other hand, if "take photo" is selected, then the photo does not include GPS data. But mere minutes before and/or after this, photos taken by the device's native Camera app do have GPS data. Why is the GPS data not being included when HTML5 pages invoke the camera???