Bug 263192

Summary: Uploading from camera on iOS unconditionally strips EXIF GPS location data (as opposed to uploading from library)
Product: WebKit Reporter: Sam W <sam.webb>
Component: ImagesAssignee: Nobody <webkit-unassigned>
Status: REOPENED ---    
Severity: Normal CC: akeerthi, ap, sabouhallawa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: iPhone / iPad   
OS: iOS 17   
See Also: https://bugs.webkit.org/show_bug.cgi?id=257534
Attachments:
Description Flags
Choose file options none

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.