背景
需要将一个没有Exif属性的图片中添加GPS属性。
安装ExifTool
- 下载地址:exiftool-12.10.zip
- 解压:将exiftool(-k).exe重命名为exiftool.exe
配置环境
1.例如:将exiftool.exe放到E:softwareexiftool目录下
2.将E:softwareexiftool加入到path下
3.验证
运行脚本
exiftool -P -GPSLongitudeRef=E -GPSLongitude=111.123456 -GPSLatitudeRef=N -GPSLatitude=33.23456 -GPSAltitudeRef=Above -GPSAltitude=357 E:images 00022.jpg
结果