移动Safari中的文件上传和EXIF

问题描述:

如这些问题所述,在某些情况下,在iOS上上传照片时,其地理位置和其他EXIF元数据已被删除(在野生动物园中):

As noted in these questions, there are cases where foto uploads on iOS have their geolocation and other EXIF metadata removed (in safari):

https://apple.stackexchange.com/questions /326789/gps-exif-fromiphone-photo-upaf-safari

从iphone上传的图像剥离了exif数据

截至目前,我还没有找到有关发生这种情况的适当描述.我有2台设备用于测试安装了最新iOS的设备,其中未剥夺EXIF元数据.

As of now, I have not found a proper description of the circumstances when this happens. I have 2 devices for testing with the latest iOS installed where EXIF metadata is NOT stripped.

是否最有希望确定是在浏览器中还是从上传中确定元数据是否已被剥离以便向用户显示某种信息?

Is there a way to determine, most hopefully in the browser or from the upload, if the metadata has been stripped in order to show some kind of info to the user?

我现在可以告诉您,如果我使用默认的Settings-> Camera->,则使用我的iPhone X和IOS 13.3(当前)会删除exif数据.格式设置,即高效率".但是,如果我将其更改为最兼容",则不会剥离EXIF数据.如果我在上传之前根本不使用手机操作照片,则这些结果是一致的.

I can tell you right now that with my iPhone X and IOS 13.3 (current) the exif data is stripped if I use the default Settings->Camera->Formats setting, which is 'High Efficiency'. But if I change that to 'Most Compatible', the EXIF data is not stripped. These results are consistent if I do not manipulate the photo at all on my phone before uploading.

如果先在手机上进行了编辑,则看起来在高效率"模式下拍摄的照片确实会上传EXIF数据-但我尚未进行大量测试以验证是否总是这种情况或在什么情况下这总是有效的.

It looks like photos that are shot under 'High Efficiency' mode do upload with EXIF data if they have been edited on the phone first - but I have not done extensive testing to verify if this is always the case or under what conditions this always works.