Change days with filesecuence

Started by VladChav, November 17, 2016, 08:09:51 AM

Previous topic - Next topic

VladChav

First of all sorry for my bad english.
I want assign to date/time that is incremented 1 day without changing the time, I have found how to do it with the hours but not with the days, using filesecuence, I would appreciate your help :)

I'm using exiftool on a mac

Phil Harvey

Try this:

exiftool -CreatDate+="1 0" DIR

This command will increment CreateDate by 1 day.  You may also want to increment DateTimeOriginal and ModifyDate.  You can do all 3 of these at the same time like this:

exiftool -alldates+="1 0" DIR

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

VladChav

Hello! I already tried it and it works, but it only increases one day to all the images, I have 30 images in a folder and I needed to do it sequentially one image per day.

Well in total there are 50,000 images in folders of 30 images each one :)

Phil Harvey

Sorry.  I didn't understand what you wanted to do.

I think maybe this is what you wanted:

exiftool "-alldates+<$filesequence 0" DIR

This command will advance the first image by 0 days, the second image by 1 day, the third image by 2 days, etc...

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

VladChav


Phil Harvey

I should have mentioned about the -r option to recurse into subdirectories.  Then you can do all of the images at once, but then the last image will be advanced by 50000 days -- I don't know if this is what you want.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

VladChav

With the code you sent me the second time is more than enough, thank you very much Phil  :D :D :D