Using makernotes TimeZone tag to generate GPSDateStamp and GPSTimeStamp?

Started by mathew22223, June 01, 2016, 07:22:15 PM

Previous topic - Next topic

mathew22223

My Canon camera puts the offset from UTC in the TimeZone tag. Is there an easy way to write GPSDateStamp and GPSTimeStamp tags, calculated from DateTimeOriginal and TimeZone, whether or not there is already GPS location info in the metadata?

I've looked at some previous threads (this one, this one, and this one) but they aren't talking about exactly what I'm looking for.

Phil Harvey

Try this:

exiftool "-gpstimestamp<$datetimeoriginal$timezone" "-gpsdatestamp<$datetimeoriginal$timezone" DIR

This works due to some ExifTool magic (explained in the GPS Tag Name documentation).

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).