Menu

Anonymising GPS Data

2022-04-22
2022-06-28
  • Wayne Kiely

    Wayne Kiely - 2022-04-22

    Hi all.
    Great tool Phil!
    I've been using the program, mostly with batch files, to extract tracklogs & other meatdata from hundreds of iPhone images for the last couple of years.
    One of the participants in an open-source project I am working on has requested that we do not publish data which might identify their property. As such I'd like to apply a fixed offset to their GPS data so as to de-identiy them, but preserve their property layout.
    Is there a simple way to do this and get the adjusted GPS coordinates back into images taken on their propery?
    I've scanned many pages of documents to no avail & looked in the forum & the closest I could find was a thread from alfric (https://exiftool.org/forum/index.php?topic=12232.0). Should I follow this approach or am I missing something obvious.
    Regards,
    Wayne

     
  • StarGeek

    StarGeek - 2022-04-22

    GPS coordinates can simply be incremented/decremented as mentioned under the -TAG[+-^]=[VALUE] option.
    Example:

    C:\>exiftool -G1 -a -s -gps* y:\!temp\Test4.jpg 
    [GPS]           GPSVersionID                    : 2.3.0.0
    [GPS]           GPSLatitude                     : 10 deg 0' 0.00"
    [GPS]           GPSLongitude                    : 10 deg 0' 0.00"
    [Composite]     GPSPosition                     : 10 deg 0' 0.00", 10 deg 0' 0.00"
    
    C:\>exiftool -P -overwrite_original -GPSLatitude+=5 -GPSLongitude+=-5 y:\!temp\Test4.jpg 
        1 image files updated
    
    C:\>exiftool -G1 -a -s -gps* y:\!temp\Test4.jpg 
    [GPS]           GPSVersionID                    : 2.3.0.0
    [GPS]           GPSLatitude                     : 15 deg 0' 0.00"
    [GPS]           GPSLongitude                    : 5 deg 0' 0.00"
    [Composite]     GPSPosition                     : 15 deg 0' 0.00", 5 deg 0' 0.00"
    
     
  • Wayne Kiely

    Wayne Kiely - 2022-04-22

    Thanks StarGeek.
    So it was the last option I mentioned - missing something obvious!
    Regards,
    W

     
  • Sarmad Nadeem

    Sarmad Nadeem - 2022-06-28

    Hi Wayne,

    Try AnyEXIF tool and thank me later :)

    But don't beat me if you've windows since it works only on macOS :")

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.