下面的exiftool命令"工作",因为数据被写入文件(见下面的grep(。但是,Finder、Photos 和 Adobe Lightroom 无法识别图像具有位置。 为什么不呢?
我从用iPhone拍摄并"正确"标记的图像中获取了所有这些值 - 该文件显示了上述所有程序中的位置数据。似乎还有数百个其他 exif 属性,所以我不确定缺少什么或无效。
exiftool
-GPSLongitude="110 deg 12' 12.40" E"
-GPSLatitude="7 deg 36' 28.92" S"
-GPSLatitudeRef="South"
-GPSLongitudeRef="East"
-GPSDateStamp="2019:06:04"
-GPSTimeStamp="08:09:53"
-GPSStatus="Measurement Active"
-GPSMeasureMode="3-Dimensional Measurement"
-GPSMapDatum="WGS-84"
-GPSDifferential="No Correction"
screenshot1.png
1 image files updated
exiftool screenshot1.png | grep GPS
GPS Version ID : 2.3.0.0
GPS Latitude Ref : South
GPS Longitude Ref : East
GPS Time Stamp : 08:09:53
GPS Status : Measurement Active
GPS Measure Mode : 3-Dimensional Measurement
GPS Map Datum : WGS-84
GPS Date Stamp : 2019:06:04
GPS Differential : No Correction
GPS Date/Time : 2019:06:04 08:09:53Z
GPS Latitude : 7 deg 36' 28.92" S
GPS Longitude : 110 deg 12' 12.40" E
GPS Position : 7 deg 36' 28.92" S, 110 deg 12' 12.40" E
在这种情况下,问题是您使用的是 PNG 文件。 在大多数情况下,缺乏对PNG文件中元数据的软件支持。 如果将其转换为另一种格式,例如 TIFF,这将是无损转换,那么您可能会有更好的结果。
此外,您也可以尝试将数据添加到 XMP 组,这可能会在使用 Lightroom 时为您提供更好的结果(尽管可能不会在其他组中使用(,因为 XMP 是 Adobe 的创作。 更改命令,使其具有XMP:
前缀(即 XMP:GPSLongitude
,XMP:GPSLatitude
(。 此外,您必须使用 XMP:GPSDateTime
而不是单独的 GPSDateStamp
和 GPSTimeStamp
标签,并删除 Ref 标签(GPSLatitudeRef
、GPSLongitudeRef
,但如果您有,请保留GPSAltitudeRef
(,因为 XMP 标签直接在标签中包含参考方向。