Original photo file name stored in Exif data?

Started by ItsMeLenny, December 28, 2022, 01:38:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ItsMeLenny

More a question of the actual canon firmware and how it writes its images, I guess irrespective of Magic Lantern.

Does the original file name of the jpeg, ie IMG_9876.JPG, get stored somewhere in the exif data?
It stores all the picture style and sharpness and what not for the sake of the camera reading that is the image number given by the camera stored anywhere in there?

Thanks.

(very long time since I've posted here, still a big user of ML though)

Walter Schulz


ItsMeLenny

Not to worry, I found the name, it is stored in the meta under two different types which look like this:
File Index                      : 7716
File Number                     : 103-7716

Unsure as to the extra number on file number, but file index, just add IMG_ to the start and .JPG to the end.
Was doing a massive SD card recovery and wanted to not have the scrambled jpg names that the recovery produced.

Using exiftool (on linux) they can be renamed with this simple command, !however! be warned, I think it will overwrite duplicates if two images happen to have the same file index:
exiftool '-FileName<IMG_$fileindex.JPG' *

c_joerg

Quote from: ItsMeLenny on December 29, 2022, 02:04:56 AM
Unsure as to the extra number on file number, but file index, j

It's the Directory Index.
EOS R