Change date of pictures [Solved]

Yesterday in good weather I recaptured and completed the grocery transport area in Sint Katelijne Waver.

But with the wrong date and time.
Now I have problems changing the date. Even with Total Commander.

Does anyone know the trick ?
It is no big deal, I can easily redo it, it is not far from here.

I expect that you need to edit the EXIF date/time!

yep, can also be done in Windows file properties window, and supposedly mac/linux should have options.
Wish there was an option to do it on the website, of course…

30000 times changing the properties ?
I found a program to do it, I also changed all times to 00:00
Now I am uploading a test set.

1 Like

I wrote a (linux/bash) script fragment to touch an image file with an increasing date/timestamp. The source was a (ffmpeg) decoded mp4 file at a specified framerate. I then used jhead to write the EXIF date/time fields.

I’ll dig for the script if anyone wants it.

For MacOS, you can change the modification date using the following terminal command as well:

touch -t YYYYMMDDHHMM.SS path/to/file

$1 is the first argument after the command;

I used;
ffmpeg -i $1.mp4 -loglevel quiet -vf fps=1/0.5 -qscale:v 2 -nostdin $1_%06d.jpg

This yields a stack of jpg files with an increasing filename suffix;
Now touch the first file manually so its date/time is correct. Then;

PRIOR=$1_000001.jpg
for F2C in ls -1 *.jpg|tac|head -n -1|tac ; do
touch -r “$PRIOR” -d ‘+0.5 sec’ “$F2C”
PRIOR=$F2C
done

This increments half a second per file. Then

TZ=utc jhead -mkexif -dsft *.jpg

That writes the EXIF

1 Like

I think the correct exif term I should use is “date taken”.

jhead does produce the correct one. AFAIK the proper tag is Exif.Photo.DateTimeOriginal.

The GPS date/time tags are additional;
Exif.GPSInfo.GPSTimeStamp
Exif.GPSInfo.GPSDateStamp

I have my wisdom from the Windows File Explorer. I suppose Bob is right.

I prefer to use exiftool for EXIF manipulation. To write increasing EXIF timestamps:

First set all files to the same timestamp: exiftool -datetimeoriginal="2012:07:01 07:00:00" .

Then assign increasing timestamps: exiftool "-datetimeoriginal+<0:0:${filesequence;$_*=.5}" -fileorder FileName .

It’s not a very easy to understand command, but at least it should run on any operating system without additional requirements.

You are both right. In Explorer it’s called “Date taken”, in the official EXIF documentation it’s “Exif.Photo.DateTimeOriginal”. But it’s the same thing.

not sure if you are asking about mapillary here?

hello guys,

I also have this problem, if someone has a solution, please tell me.

thanks in advance:)

do you mean changing exif dates?

And everything is fine now, except the hours.

I use an application called gps2jpeg 4.0 to change both time and geo position when I take pictures with my action camera and the time is wrong.

Thanks for sharing. This is how I solved it…

  1. Install exif tools with homebrew (exiftool — Homebrew Formulae)

  2. Use this website to calculate the date/time diff Time Duration Calculator: Time between two dates/times

    Or 7 years, 6 months, 20 days, 9 hours, 20 minutes

  3. User the ExifTool Date/Time Shift Feature to update all files in a folder
    Docs: ExifTool by Phil Harvey
    Command exiftool "-AllDates+=7:6:20 9:20" /FOLDER

  4. Use the Desktop uploader like always. The “.JPG_original” files are ignored.

Before:

After:

After in Finder:

2 Likes

I just learned of a better way to do this:
All GoPros with GPS store a DateTime in UTC from as part of the GPS Data.
We can use this data to overwrite the Exif data…

  • exiftool -overwrite_original -r "-AllDates<\${GPSDateTime}" /FOLDER

… and then manually fix the offset to UTC wich is 2h for me ATM

  • exiftool -overwrite_original -r "-AllDates+=0:0:00 2:00" /FOLDER

Those commands also are recursive (-r) and overwrite the existing file (no *_original files anymore).

In order to validate the times, use this command to get all the different dateTime values for a file or Folder

  • exiftool -DateTimeOriginal -CreateDate -ModifyDate -GPSDateTime -r /FILE_OR_FOLDER
3 Likes

FYI - the Mapillary desktop uploader should now be using GPS time by default for images (so you shouldn’t have to do this manually, but let us know if something isn’t working as expected there). We are also working on adding the same functionality for videos.

2 Likes