ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: boothby81 on December 11, 2010, 06:34:20 PM

Title: set "datetimeoriginal" to values from "gpsdatestamp" and "gpstimestamp"
Post by: boothby81 on December 11, 2010, 06:34:20 PM
hello everybody...

i have the following question:

i used geosetter to geotag my pictures. their exif data now includes gps-coordinates as well as the tags "gpsdatestamp" and "gpstimestamp". since these two tags contain the correct date/time information, i would like to use them to overwrite the other date/time tags (e.g. "datetimeoriginal"). however, i couldn't figure out how to do this.

i read the faq and searched the forum but i only found answers for performing the opposite task: setting "gpsdatestamp" and "gpstimestamp" to the values from "datetimeoriginal. this is done by
C:\exiftool-8.42>exiftool.exe "-gpsdatestamp<datetimeoriginal" image.jpg
or
C:\exiftool-8.42>exiftool.exe "-gpstimestamp<datetimeoriginal" image.jpg
and works fine.

if i try to do it just the other way round, i.e.
C:\exiftool-8.42>exiftool.exe "-datetimeoriginal<gpsdatestamp" image.jpg
i get the output

Warning: [minor] Unrecognized MakerNotes - image.jpg
   1 image files updated

but although exiftool claims to have updated the file, it didn't change anything!

trying it with "gpstimestamp" instead of "gpsdatestamp", i.e.
C:\exiftool-8.42>exiftool.exe "-datetimeoriginal<gpstimestamp" image.jpg
at least results in a correct warning message

Warning: [minor] Unrecognized MakerNotes - image.jpg
Warning: No writable tags found - image.jpg
   0 image files updated
   1 image files unchanged

but also does not change anything!

is there a solution to my problem?

thanks.

boothby81
Title: Re: set "datetimeoriginal" to values from "gpsdatestamp" and "gpstimestamp"
Post by: Phil Harvey on December 11, 2010, 09:42:18 PM
Try "-datetimeoriginal<gpsdatetime".

This uses the Composite:GPSDateTime tag which is derived from GPS:GPSDateStamp and GPS:GPSTimeStamp.

- Phil
Title: Re: set "datetimeoriginal" to values from "gpsdatestamp" and "gpstimestamp"
Post by: boothby81 on December 12, 2010, 06:19:35 PM
hi phil!

thanks a lot, that works like a charm...
great tool!

boothby81