ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: pprados on September 13, 2016, 01:25:05 AM

Title: Change hour of JPEG to respect the filename order
Post by: pprados on September 13, 2016, 01:25:05 AM
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
Title: Re: Change hour of JPEG to respect the filename order
Post by: Phil Harvey on September 13, 2016, 07:17:06 AM
Yes.  You could do this:

1. Set all files to the same date/time (the current date in this example, see FAQ 5 (https://exiftool.org/faq.html#Q5) 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 (https://exiftool.org/TagNames/Shortcuts.html) that represents the common EXIF date/time tags.  FileSequence is an Extra tag (https://exiftool.org/TagNames/Extra.html) that starts at zero and increments for each processed file.

- Phil