Change hour of JPEG to respect the filename order

Started by pprados, September 13, 2016, 01:25:05 AM

Previous topic - Next topic

pprados

Hello,
I create  an album with JPEG files. I rename all files to respect the order of the slideshow, if I sort the files by names.
But, if I publish this folder in Internet, the order was the exif date/time.

So, I would like to set the date/time to all files in the folder to have the same order if I sort by name or by date/time.
Is it possible with ExifTool ?

Thanks

Phil Harvey

Yes.  You could do this:

1. Set all files to the same date/time (the current date in this example, see FAQ 5 for information about date/time formatting):

exiftool -alldates=now DIR

2. Increment times by 1 hour for each subsequent file, ordered by file name:

exiftool "-alldates+=filesequence" -fileorder filename DIR

AllDates is a Shortcut tag that represents the common EXIF date/time tags.  FileSequence is an Extra tag that starts at zero and increments for each processed file.

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