查看日期时间信息

& '.\exiftool(-k).exe' -a -s -G1 -time:all ""

查看所有信息

& '.\exiftool(-k).exe' -a -s -G1 -all ""

写入heic、jpg、png的地理信息,日期信息

& '.\exiftool(-k).exe' -r -d %s -tagsfromfile "%d/%F.json" "-GPSAltitude<GeoDataAltitude" "-GPSLatitude<GeoDataLatitude" "-GPSLatitudeRef<GeoDataLatitude" "-GPSLongitude<GeoDataLongitude" "-GPSLongitudeRef<GeoDataLongitude" "-Keywords<Tags" "-Subject<Tags" "-Caption-Abstract<Description" "-ImageDescription<Description" "-FileModifyDate<PhotoTakenTimeTimestamp" "-FileCreateDate<PhotoTakenTimeTimestamp" "-IFD0:ModifyDate<PhotoTakenTimeTimestamp" "-ExifIFD:OffsetTime=+08:00" "-ExifIFD:OffsetTimeOriginal=+08:00"  "-ExifIFD:DateTimeOriginal<PhotoTakenTimeTimestamp" "-ExifIFD:CreateDate<PhotoTakenTimeTimestamp" -ext HEIC -ext heic -ext JPG -ext jpg -ext jpeg -ext png -ext PNG -overwrite_original -progress --ext json ''

PNG文件在执行后需要转为tiff文件存储会比较稳妥

Windows以及各大平台对照片日期的识别基本上都会有误,只能读取UTC的时间(中心时区的时间),此时需要手动将部分日期改为+8小时

& '.\exiftool(-k).exe' -r -d %s  "-FileModifyDate+=8:0:0" "-FileCreateDate+=8:0:0" "-IFD0:ModifyDate+=8:0:0"   "-ExifIFD:DateTimeOriginal+=8:0:0" "-ExifIFD:CreateDate+=8:0:0"  -ext HEIC -ext heic -ext JPG -ext jpg -ext jpeg -ext png -ext PNG -overwrite_original -progress ''

写入视频的地理信息,日期信息

& '.\exiftool(-k).exe' -r -d %s -tagsfromfile "%d/%F.json" "-GPSAltitude<GeoDataAltitude" "-GPSLatitude<GeoDataLatitude" "-GPSLatitudeRef<GeoDataLatitude" "-GPSLongitude<GeoDataLongitude" "-GPSLongitudeRef<GeoDataLongitude" "-Keywords<Tags" "-Subject<Tags" "-Caption-Abstract<Description" "-ImageDescription<Description" "-FileModifyDate<PhotoTakenTimeTimestamp" "-FileCreateDate<PhotoTakenTimeTimestamp" "-ModifyDate<PhotoTakenTimeTimestamp" "-CreateDate<PhotoTakenTimeTimestamp" "-TrackCreateDate<PhotoTakenTimeTimestamp" "-TrackModifyDate<PhotoTakenTimeTimestamp"   "-MediaCreateDate<PhotoTakenTimeTimestamp" "-MediaModifyDate<PhotoTakenTimeTimestamp" "-CreationDate<PhotoTakenTimeTimestamp"  "-DateTimeOriginal<PhotoTakenTimeTimestamp"  -ext mov -ext MOV -ext MP4 -ext mp4 -overwrite_original -progress --ext json 'D:\Takeout\GooglePhoto\'

与照片几乎一样的操作,不过,此时CreateDate和ModifyDate无需修改,大部分平台都能在UTC的时区上自动加上本地时区

& '.\exiftool(-k).exe' -r -d %s "-FileModifyDate+=8:0:0" "-FileCreateDate+=8:0:0" "-TrackCreateDate+=8:0:0" "-TrackModifyDate+=8:0:0"   "-MediaCreateDate+=8:0:0" "-MediaModifyDate+=8:0:0" "-CreationDate+=8:0:0"  "-DateTimeOriginal+=8:0:0" -ext mov -ext MOV -ext MP4 -ext mp4 -overwrite_original -progress 'D:\Takeout\GooglePhoto\'