Does exiftool save the original file name in any tag when renaming files

Started by vbnut, April 13, 2025, 03:54:33 AM

Previous topic - Next topic

vbnut

When renaming files using "-FileName<..." does exiftool same the original file name in some tag?
Unless I'm missing something, I can't find the original file name in the metadata of the files I've renamed using exiftool.

Phil Harvey

ExifTool only does what you tell it to.  A command like this may be used to save the original file name:

exiftool "-filename<$SOMETHING" "-originalfilename<filename" ...

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

StarGeek

OriginalFileName is used by Getty Images, e.g. XMP-getty:OriginalFileName and probably doesn't have widespread use beyond Getty.

PreservedFileName is probably a better choice, as that is part of the XMP Media Management group, which is used by Lightroom and other Digital Asset Management (DAM) programs.

The XMP:Title and IPTC:ObjectName are also tags that can be used for this, as the IPTC Photo Metadata Standard says
QuoteHelp Text: Enter a short verbal and human readable name for the image, this may be the file name
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

vbnut

Thanks folks. That's kind of what I expected.  I will update my ingest script to have exiftool save the original file name.

I posted a related question on LightroomQueen.com, and someone there pointed out that Lightroom uses PreservedFileName, although I'm seeing PreservedFileName being identical to the current filename even for images I renamed in Lightroom.