For geo-referencing photos, I sometimes find my photos' DateTaken is out of sync with the GPS times, usually because I didn't change my camera's clock when travelling to another timezone.
This is how to fix it from the command line with EXIFtool (although it's more likely I would use GeoSetter as sometimes a bit of trial and error is required)
First install "ExifTool by Phil Harvey" : https://sno.phy.queensu.ca/~phil/exiftool/install.html
Stand-Alone Executable
-
Download the Windows Executable from the ExifTool home page.
(The file you download should be named "
exiftool-10.78.zip
".) -
Extract "
exiftool(-k).exe
" from the ".zip
" file, and place it on your Desktop.(Double-click on "
exiftool-10.78.zip
" to open the archive, then drag "exiftool(-k).exe
" to your Desktop.)
-
Rename "
exiftool(-k).exe
" to "exiftool.exe
".(or "
exiftool(-k)
" to "exiftool
" if file name extensions are hidden on your system) -
Move "
exiftool.exe
" to the "C:\WINDOWS
" directory (or any other directory in your PATH).
You can now run exiftool by typing "exiftool
" at the command prompt. (To get to the command prompt, select "Run..." from the Windows "Start" menu, then type "cmd
" and press Return.)
Have you ever forgotten to set the date/time on your digital camera before taking a bunch of pictures? ExifTool has a time shift feature that makes it easy to apply a batch fix to the timestamps of the images (eg. change the "Date Picture Taken" reported by Windows Explorer). Say for example that your camera clock was reset to 2000:01:01 00:00:00 when you put in a new battery at 2005:11:03 10:48:00. Then all of the pictures you took subsequently have timestamps that are wrong by 5 years, 10 months, 2 days, 10 hours and 48 minutes. To fix this, put all of the images in the same directory ("DIR
") and run exiftool:
exiftool "-DateTimeOriginal+=5:10:2 10:48:0" DIR
The example above changes only the DateTimeOriginal tag, but any writable date or time tag can be shifted, and multiple tags may be written with a single command line. Commonly, in JPEG images, the DateTimeOriginal, CreateDate and ModifyDate values must all be changed. For convenience, a Shortcut tag called AllDates has been defined to represent these three tags. So, for example, if you forgot to set your camera clock back 1 hour at the end of daylight savings time in the fall, you can fix the images with:
exiftool -AllDates-=1 DIR
See Image::ExifTool::Shift.pl (download in PDF format) for details about the syntax of the time shift string.
Note: Not all date/time information is covered by the AllDates shortcut. Specifically, the filesystem date/time tags are not included, and this command will reset FileModifyDate to the current date/time as it should when the file is modified, unless either the -P
option is used, or FileModifyDate is set to something else. To shift FileModifyDate along with the other tags, add -FileModifyDate-=1
to the command above.
in the command prompt, I typed:
C:\Users\Pinocchio>exiftool -AllDates-=1 C:\Users\Pinocchio\Pictures\MtArcossu_timefix
This works for camera set to UK time when GPS track was recorded in Italy
(To get to the command prompt, select "Run..." from the Windows "Start" menu, then type "cmd
" and press Return.)