TimSC
 lvl.1
Flight distance : 4535338 ft
United Kingdom
Offline
|
My Mini 2 photos are not geotagged when I upload them to flickr. I found there are missing EXIF tags in the JPEG files produced by DJI Fly/Mini 2. To be specific, the GPSLatitudeRef and GPSLongitudeRef are not set. To fix my image files, I have to use the python script below but the exact values would depend on your location.
I'm currently using Fly 1.10.4 and aircraft firmware 01.07.0200
Hopefully DJI can do a firmware fix. I've also emailed the bug report to support@dji.com
import piexif
import shutil
def fix(fname, outname):
exif_dict = piexif.load(fname)
latRefKey = piexif.GPSIFD.GPSLatitudeRef
exif_dict['GPS'][latRefKey] = 'N'
lonRefKey = piexif.GPSIFD.GPSLongitudeRef
exif_dict['GPS'][lonRefKey] = 'W'
for k, v in exif_dict['GPS'].items():
tag = piexif.TAGS['GPS'][k]['name']
print(tag, v)
exif_bytes = piexif.dump(exif_dict)
shutil.copy(fname, outname)
piexif.insert(exif_bytes, outname)
fix("dji_fly_20230625_053606_181_1687668232692_photo_optimized.jpg", "test.jpg")
|
|