Check Images for EXIF GPS Data

There is a python script which lets you check the images taken by the ILX to see if they have metadata containing GPS data. You can download it here: https://drive.google.com/file/d/1-jXdSI1jx4wl79dwSnLasGQ4NfaEWub5/view?usp=drive_linkarrow-up-right Before you run this script, download all the image files to a new directory.

Install Requirement

pip3 install pyexiv2

Run Script

python3 sony_exif.py /path/to/directory

circle-info

Replace /path/to/directory with the path where your image files can be found. Note: The script will throw you an error if any image in a directory does not have the proper exif data as it should.

chevron-rightEventual expected output if an image in the directory does NOT contain exif data as it shouldhashtag
Reading exif for Johnny.JPG
Traceback (most recent call last):
  File "/home/john/repos/IFT-ILX-MavCam/sony_exif.py", line 16, in <module>
    ascii_string = data["Exif.Sony1.0x2043"] # read string
KeyError: 'Exif.Sony1.0x2043'

chevron-rightExpected outputhashtag
Reading exif for DSC08262.JPG
Latitude: -35.363270
Longitude: 149.165237
Reading exif for DSC08827.JPG
Latitude: -35.362347
Longitude: 149.165985
Reading exif for DSC08400.JPG
Latitude: -35.362602
Longitude: 149.163772
Reading exif for DSC08280.JPG
Latitude: -35.363262
Longitude: 149.165237
Reading exif for DSC08826.JPG
Latitude: -35.362408
Longitude: 149.165985
Reading exif for DSC08700.JPG
Latitude: -35.362438
Longitude: 149.165314
Reading exif for DSC08586.JPG
Latitude: -35.361282
Longitude: 149.164810
Reading exif for DSC08572.JPG
Latitude: -35.361973
Longitude: 149.164658
Reading exif for DSC08418.JPG
Latitude: -35.361656
Longitude: 149.163925
Reading exif for DSC08785.JPG
Latitude: -35.362377
Longitude: 149.165771
Reading exif for DSC08596.JPG
Latitude: -35.361790
Longitude: 149.164886
Reading exif for DSC08493.JPG
Latitude: -35.361439
Longitude: 149.164246
Reading exif for DSC08483.JPG
Latitude: -35.361977
Longitude: 149.164230
Reading exif for DSC08724.JPG
Latitude: -35.363667
Longitude: 149.165451
Reading exif for DSC08616.JPG
Latitude: -35.362900
Longitude: 149.164886
Reading exif for DSC08696.JPG
Latitude: -35.362228
Longitude: 149.165329
Reading exif for DSC08464.JPG
Latitude: -35.363018
Longitude: 149.164215
Reading exif for DSC08790.JPG
Latitude: -35.362648
Longitude: 149.165771
Reading exif for DSC08533.JPG
Latitude: -35.363392
Longitude: 149.164444
Reading exif for DSC08319.JPG
Latitude: -35.363304
Longitude: 149.165024
Reading exif for DSC08350.JPG
Latitude: -35.362789
Longitude: 149.162384
Reading exif for DSC08589.JPG
Latitude: -35.361408
Longitude: 149.164871
Reading exif for DSC08320.JPG
Latitude: -35.363346
Longitude: 149.164795
Reading exif for DSC08380.JPG
Latitude: -35.362827
Longitude: 149.162613
Reading exif for DSC08523.JPG
Latitude: -35.362823
Longitude: 149.164444
Reading exif for DSC08375.JPG
Latitude: -35.362545
Longitude: 149.162613
Reading exif for DSC08471.JPG
Latitude: -35.362640
Longitude: 149.164230
Reading exif for DSC08582.JPG
Latitude: -35.361420
Longitude: 149.164658
Reading exif for DSC08811.JPG
Latitude: -35.363258
Longitude: 149.165985
Reading exif for DSC08238.JPG
Latitude: -35.363380
Longitude: 149.165253
Reading exif for DSC08850.JPG
Latitude: -35.362072
Longitude: 149.166214
Reading exif for DSC08613.JPG
Latitude: -35.362736
Longitude: 149.164871
Reading exif for DSC08488.JPG
Latitude: -35.361702
Longitude: 149.164230
Reading exif for DSC08866.JPG
Latitude: -35.362938
Longitude: 149.166214
Reading exif for DSC08501.JPG
Latitude: -35.361607
Longitude: 149.164444
Reading exif for DSC08401.JPG
Latitude: -35.362553
Longitude: 149.163788
Reading exif for DSC08361.JPG
Latitude: -35.362206
Longitude: 149.162430
Reading exif for DSC08549.JPG
Latitude: -35.363232
Longitude: 149.164658
Reading exif for DSC08365.JPG
Latitude: -35.362022
Longitude: 149.162582
Reading exif for DSC08808.JPG
Latitude: -35.363422
Longitude: 149.165970
Reading exif for DSC08663.JPG
Latitude: -35.362080
Longitude: 149.165100
Reading exif for DSC08402.JPG
Latitude: -35.362495
Longitude: 149.163788

Example of me running the script:

Last updated