exif-js / exif-js

JavaScript library for reading EXIF image metadata
MIT License
4.78k stars 1.26k forks source link

IOS14 cannot read exif data #252

Open AlanNgaiJX opened 3 years ago

AlanNgaiJX commented 3 years ago

It seems IOS14 cannot read the exif data of photo libary. It might cause by the new privacy system of IOS14. Does anybody have a solution ?

IOS14中的照片图库获取不到exif信息,可能是IOS14加强了隐私保护,有同行大佬有解决方案吗

bartvanderwal commented 3 years ago

You have to give more information. Are you getting no exif information at all? Or are specific fields empty?

Perhaps you should ask for the 'location' permission in your iOS app as well in order to get GPS lat and long. As well as permission for the photo's. I assume you have a hybrid app, using javascript since you're using exif-js.

You need to extend the info.plist file for this. Something like in below post dependening on if you're using phonegap or Ionic or the latter. Perhaps you need to remove platform ios and add it again in order to get this right. Since manually overwriting .plist file could be overwritten later.

https://stackoverflow.com/questions/1673579/location-permission-alert-on-iphone-with-phonegap

enterzet commented 3 years ago

@weepy ###