Bug 263192 - Uploading from camera on iOS unconditionally strips EXIF GPS location data (as opposed to uploading from library)
Summary: Uploading from camera on iOS unconditionally strips EXIF GPS location data (a...
Status: REOPENED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: Safari 17
Hardware: iPhone / iPad iOS 17
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-16 05:12 PDT by Sam W
Modified: 2023-10-23 11:17 PDT (History)
4 users (show)

See Also:


Attachments
Choose file options (31.97 KB, image/jpeg)
2023-10-16 05:12 PDT, Sam W
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam W 2023-10-16 05:12:05 PDT
Created attachment 468226 [details]
Choose file options

I previously reported an issue that occurred when uploading a photo via a file input on iOS 16.4, in which the GPS location data was being stripped from the Exif data.

This was resolved in iOS 17 via the new "options" menu in the photo picker that gives the user control over whether or not location is shared in the photos uploaded.

However, this setting only applies to pre-existing photos selected from the photo library. If you choose to take a new photo with the camera, the GPS location data is still being stripped from the Exif data.
Comment 1 Radar WebKit Bug Importer 2023-10-23 05:13:13 PDT
<rdar://problem/117347221>
Comment 2 Said Abou-Hallawa 2023-10-23 10:02:52 PDT
This is not a WebKit bug. It is a bug in a framework below WebKit. It will be forwarded to the appropriate team in Apple.
Comment 3 Aditya Keerthi 2023-10-23 11:17:07 PDT
WebKit is somewhat involved in this issue, since we convert the image to JPEG, stripping EXIF data: https://github.com/WebKit/WebKit/blob/00756ec4a27caa537682bf6e18005d7745ee26d1/Source/WebKit/UIProcess/ios/forms/WKFileUploadPanel.mm#L1169

Though we'd want an additional options menu for the camera path, before removing that logic in WebKit.