Offset for FileNumber

Started by pepete, May 27, 2013, 04:37:57 PM

Previous topic - Next topic

pepete

Hello together,

I am searching for a possibility to add an offset to the filenumber to rename my files but I could not find a way to do this.

Thank you and best regards,

Peter

Phil Harvey

Hi Peter,

If you are talking about the Canon FileNumber, it is a Composite tag derived from DirectoryIndex and FileIndex.  To add an offset to FileIndex, use this command:

exiftool -fileindex+=21 image.jpg

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

pepete

Hey Phil,

thank you for your help. In my case it is a Nikon D5100, but this helps me. I can now just update the filenumber and then rename the files with the updated filenumber!

Thank you,

Peter