Please select Into the mobile phone version | Continue to access the computer ver.
Geotagging not working on flickr/Missing EXIF tags
1239 7 2023-6-25
Uploading and Loding Picture ...(0/1)
o(^-^)o
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")




  
2023-6-25
Use props
DJI Paladin
Administrator
Flight distance : 318 ft

Offline

Hi there. Thank you for reaching out and we're sorry for the trouble. We will forward this feedback of yours to our designated team for attention. We appreciate your understanding.
2023-6-25
Use props
Labroides
Core User of DJI
Flight distance : 26781877 ft
  • >>>
Australia
Online

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.
That sounds unlikely.
All DJI image files have location data included in their metadata.
Are you looking at the actual original image files?   ... the ones that are recorded to the SD card in your drone?
Or are you looking at reduced size, cached, image files?

Upload one of these problem files to Google Drive or similar and post a link to the uploaded file and I'll dig a little deeper into the mystery.
2023-6-25
Use props
DAFlys
Captain
Flight distance : 312090263 ft
  • >>>
United Kingdom
Offline

If you are looking at the ones the fly app saves and not the ones from the SD card then the fly app has long mangled the exif and original filenames.
2023-6-26
Use props
TimSC
lvl.1
Flight distance : 4535338 ft
United Kingdom
Offline

DAFlys Posted at 6-26 01:11
If you are looking at the ones the fly app saves and not the ones from the SD card then the fly app has long mangled the exif and original filenames.

DAFlys is correct! The files on the SD card have the correct tags. Images transferred by DJI Fly miss these tags.


The forum annoyingly blocks links so you will have to reconstruct the URL. For an example see https www.flickr.com photos tim_uk 52999748355 and click on download original. I checked if flickr modifies the file and it is unchanged: the md5 hash is 0e602e48d7f20df22a5a52718933b248
2023-6-26
Use props
DAFlys
Captain
Flight distance : 312090263 ft
  • >>>
United Kingdom
Offline

TimSC Posted at 6-26 06:18
DAFlys is correct! The files on the SD card have the correct tags. Images transferred by DJI Fly miss these tags.

Yep,   it's been like that for years,    No point in the fly app for image transfer just use the sd card.     


PS the forum doesn't block links,   they even have an add link button on the post.   Your link might be too long due to trackers.  
2023-6-26
Use props
TimSC
lvl.1
Flight distance : 4535338 ft
United Kingdom
Offline

DAFlys Posted at 6-26 09:38
Yep,   it's been like that for years,    No point in the fly app for image transfer just use the sd card.     

DJI got back to me to say "After a series of tests, our engineers have confirmed that this issue exists only on DJI Mini 2. They will do their best to locate the reason for this issue and will get this issue fixed in the future. At present, our engineers recommend you directly download the images from the SD card to get complete GPS info."
2023-7-12
Use props
DAFlys
Captain
Flight distance : 312090263 ft
  • >>>
United Kingdom
Offline

TimSC Posted at 7-12 19:05
DJI got back to me to say "After a series of tests, our engineers have confirmed that this issue exists only on DJI Mini 2. They will do their best to locate the reason for this issue and will get this issue fixed in the future. At present, our engineers recommend you directly download the images from the SD card to get complete GPS info."

lol.  Ive had this happen in the Mini 3 as well.   Oh well I dont care for using the app for transfers anyway.
2023-7-12
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules