0

Fairly straight forward question and a fairly common scenario I would imagine. I have taken photos with iPhone and digital camera of the same subjects and locations, most of these groups of photos have been put in folders like "Holiday in Dorset" or "Waterpark".

Is there a way to merge location data from iPhone photos (img*.jpg) to digital camera photos (DSC*.jpg) by folder? I have '000s of photos to do this with, so need to do this in as automated a way as possible. Happy to write batch scripts, just need to know best way to approach the problem and what tools to use.

  • "Fairly straight forward question and a fairly common scenario I would imagine." And one that has been asked here several times before. Have you searched the existing base of questions? – Michael C Sep 29 '18 at 15:46
  • And, for the Android crowd: How can I use an Android smartphone as GPS to geotag my photos? – Michael C Sep 30 '18 at 6:26
  • I did. And no results. Search the text of my question title and see results – DaBozUK Sep 30 '18 at 16:10
2
  • exiftool can be used to create a gpx file, as Unapiedra describes. In some Linux distributions, the gpx.fmt does not need to be created because it is already installed. After the gpx file has been created, exiftool can be called again to tag untagged files. Change filenames and time-zones as appropriate.

    exiftool -fileOrder gpsdatetime -p /usr/share/doc/libimage-exiftool-perl/fmt_files/gpx.fmt -ext jpg . > out.gpx
    
    exiftool -if 'not ($GPSLatitude or $GPSLongitude)' -geotag out.gpx '-geotime<${createdate}-00:00' -r -ext jpg  .
  • If you have Google Location History turned on, you can download KML files from Google Timeline or Takeout. Then use exiftool to tag your photos.

    exiftool -if 'not ($GPSLatitude or $GPSLongitude)' -geotag history.kml '-geotime<${createdate}-00:00' -r -ext jpg  .
  • Will give this a go assuming it works on Windows 10 and iPhone jpgs use those tags – DaBozUK Sep 30 '18 at 16:14

Not the answer you're looking for? Browse other questions tagged or ask your own question.