set "datetimeoriginal" to values from "gpsdatestamp" and "gpstimestamp"

Started by boothby81, December 11, 2010, 06:34:20 PM

Previous topic - Next topic

boothby81

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

Phil Harvey

Try "-datetimeoriginal<gpsdatetime".

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

- 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 ($).

boothby81

hi phil!

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

boothby81