ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: ljb on December 16, 2010, 01:18:56 AM

Title: Can I set GPSDateStamp/GPSTimeStamp without Lat/Long?
Post by: ljb on December 16, 2010, 01:18:56 AM
Setting GPSDateStamp/GPSTimeStamp to something different that DateTimeOriginal seems to be the only way to indicate the UTC offset of local time when & where a picture was taken (I'd like to keep DateTimeOriginal in local time).

For all my pictures, I know the UTC offset of local time at the time and place a picture was taken, but I don't always know the geographic coordinates. So, I'd like to set GPSDateStamp/GPSTimeStamp for all pictures when I copy them off my camera, and set to geographic coordinates to those where I know them (via gpx files).

Using something like this:
  exiftool -geotag "*.gpx" '-geotime<${DateTimeOriginal}+11:00' Pictures
only modifies files that can be geographically located.

Is there a way to set GPSDateStamp/GPSTimeStamp no matter what?

Larry

Title: Re: Can I set GPSDateStamp/GPSTimeStamp without Lat/Long?
Post by: Phil Harvey on December 16, 2010, 07:18:59 AM
Hi Larry,

XMP date/time values support a timezone, so another option is to write XMP-exif:DateTimeOriginal if you want to preserve the time zone.

But to answer your question, you can set GPSDateStamp/GPSTimeStamp for all pictures like this:

exiftool '-gpstimestamp<${DateTimeOriginal}+11:00' '-gpsdatestamp<${DateTimeOriginal}+11:00' Pictures

- Phil