Change date of pictures

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

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.