Skip to main content
jacobf91877538
Participant
November 23, 2016
Open for Voting

P: Add "Preserve current filename in XMP Metadata" as a checkbox to Export,

  • November 23, 2016
  • 22 replies
  • 1305 views

There is a feature in Bridge that allows you to batch rename files while preserving the original filename as a new field in the metadata. This feature would be great to have in Lightroom as well, most likely as a checkbox option under "file renaming" of Export. When dealing with loads of files, it ensures that no matter what the file is renamed we will always be able to track back to the raw file. I saw someone posted about this 10 years ago in the adobe forum so I am guessing that it isn't super important...

22 replies

johnrellis
Legend
November 25, 2016
Some testing shows that when LR and Bridge first write a raw file's .xmp sidecar, they both write the current filename into the field XMP:RawFileName.  

If you then rename the raw file in Bridge, XMP:RawFileName doesn't get changed -- it contains the original filename.

However, if you rename the raw file in LR, LR changes XMP:RawFileName to the new, renamed filename.

XMP:RawFileName is a proprietary metadata field not defined by any industry standard, so who knows what Adobe intends it to contain.
Inspiring
November 24, 2016

Ah, I see that now. It writes it where Copy Name used to be which is now below Original Filename. But it does write it into Bridge metadata, see screen capture.

Inspiring
November 24, 2016
Ah, I see that now. It writes it where Copy Name used to be which is now below Original Filename. 
johnrellis
Legend
November 24, 2016
Jacob Frank was asking for the original filename to be embedded in the file's metadata. While LR's Rename command does include the original filename in the catalog's Metadata panel, it doesn't write it out to the file as Bridge does.
john beardsworth
Community Expert
Community Expert
November 24, 2016
"But this won't handle the use-case of renaming files with the Library > Rename Photo command.'

"Original Filename" is available in Lightroom's file renaming - see the Filename Template Editor. So there's no need to use Bridge for this.
johnrellis
Legend
November 24, 2016
"This feature would be great to have in Lightroom as well, most likely as a checkbox option under 'file renaming' of Export. "

For export, you can use the Metadata Wrangler plugin to put the full path of the original filename (or just the filename) into a metadata field in the exported pic.  

But this won't handle the use-case of renaming files with the Library > Rename Photo command.
johnrellis
Legend
November 24, 2016

"Lightroom already has a similar feature. If you change the file name in the library mode, it saves the original file name in the space below (Copy Name)."

Clarification: It shows up in Original Filename (not Copy Name) in the EXIF And IPTC tagset of the Metadata panel, e.g.

Inspiring
November 23, 2016
It shows up under Camera Raw in metadata. I was using a DNG file on my first test, so I also tried it on a TIF file & it works there too.
jacobf91877538
Participant
November 23, 2016
But it only shows up in LR, it's not actually embedded as a new field in the .xmp file. For example, it doesn't show up when viewed in bridge or in the metadata on flickr. It only shows up when you batch rename and select that option in bridge.
Inspiring
November 23, 2016
Lightroom already has a similar feature. If you change the file name in the library mode, it saves the original file name in the space below (Copy Name).