Change randomly time to images in a folder

Started by VladChav, March 28, 2018, 10:03:50 AM

Previous topic - Next topic

VladChav

Hello! Good day :)  How change randomly time to images in a folder? In a time from 11:00 to 16:00, I have learned to use -filesequence but I do not know how to do it randomly, I found something in the forum where they used the command "rand" someone can you help me?
Thank you in advance for your support.

Phil Harvey

This is a bit sneaky, but it will shift the DateTimeOriginal of all images in a directory by a random amount between 0 and 1000 seconds:

exiftool "-datetimeoriginal+<0:0:${filename;$_=rand(1000)}" DIR

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

VladChav