• Welcome to the Lightroom Queen Forums! We're a friendly bunch, so please feel free to register and join in the conversation. If you're not familiar with forums, you'll find step by step instructions on how to post your first thread under Help at the bottom of the page. You're also welcome to download our free Lightroom Quick Start eBooks and explore our other FAQ resources.
  • Dark mode now has a single preference for the whole site! It's a simple toggle switch in the bottom right-hand corner of any page. As it uses a cookie to store your preference, you may need to dismiss the cookie banner before you can see it. Any problems, please let us know!

Restore original filenames

Status
Not open for further replies.

rctneil

Active Member
Joined
Jul 1, 2012
Messages
218
Location
Cheshire
Lightroom Experience
Intermediate
Hello,

Before I used LR, I stored all my photos in a simple folder structure and renamed each one depending on it's content. Now they are all organised in LR, I want to restore to the old original camera created filename. I see the "Original Filename" field in the metadata panel. How can I select a bunch of images and restore the old filename to them all?
 
Select them all, then press F2 (or Library>Rename) and in the Rename dialog, click the down arrow to select Edit and the Filename Template Editor will open....just select "Original Filename" in the Image Name box, press the Insert button so that the template has only that field, as per the attached example, as you should be done.

Capture.JPG
 
"Original filename" in LR means the filename as it was imported into LR. If you have renamed the files before import, outside of LR, then that is the original name as far as LR knows. In that case you can't get back to the camera generated filename. "Original filename" will only let you "undo" renaming done inside LR.

Also, if you import images into LR and rename them in the import dialog, then the renamed filename is what LR treats as "original filename". So if you have images with the normal camera generated name IMG_4722.JPG and import that, and rename it in the import dialogue to 20130424 001.JPG then you can never get back to IMG_4722.JPG since LR will now treat 20130424 001.JPG as the original name. This is the reason I always import without renaming. By doing so I can rename as much as I want inside LR, but I can always get back to IMG_4722.JPG since LR knows that is the original name.
 
Yes I realise this. The I mused have renamed them inside lightroom then. Can't remember it but from what you have said then I must have done

Thanks

Just at a pub quiz at the moment which is highlighting my surprising lack of knowledge so will try this when I get home

Neil
 
I believe this is actually a bug. I reported it on the adobe site and an employee thanked me for reporting it. Maybe that's standard fare though - to get us to shut up. :)
I hope people go there and also report it as a bug. I'm really sick of having to do this in 2 steps all the time - which seems to be what many will do.. In other words, I really don't think this is a 'feature'. It makes trying to rename files later on almost impossible. I haven't totally settled on what naming standard to follow yet - so now I have a slight mess regarding files I renamed during import before knowing this tidbit of information. Redeeming me is at least a main feature I settled on early is having a database-style date near or at the beginning of the filename. That's the good news.

Bad news is that LR's renaming facilities to do more complex file renaming is still rather lacking, making it too much trouble to try renaming all those old files.


Please people - go and report this as a bug so it gets fixed ASAP! As far as I'm concerned it completely is. It would make no sense to me that it should purposely work the way it does right now. And it's getting really annoying.
 
I can't find your adobe site post either - what's your username there?
 
Oh sorry.. Here it is.. http://feedback.photoshop.com/photo...tm_medium=email&utm_source=reply_notification

As far as why.. Is that I just can't see how it would be normal behavior. I've seen too many people saying that they do the renaming after import specifically to avoid that behavior. Plus it would make some of the tokens in the renaming 'dialog' rather pointless, like 'original filename' or 'original suffix'.
 
So the filename marked Original Filename should actually be called Import Filename. Are you renaming on import, and then trying to recreate the filename as it was on the card?
 
Not quite sure what you mean in the first sentence. The "Original Filename" field in the LR panel is what I've been understanding that Adobe is calling the "xmpMM:: Preservedfilename" field as, but I could be wrong of course.

But yeah - I was originally renaming on import until I started reading that people were doing it in two steps to make sure the preservedfilename field would get the actual name from the card. So that's about when I also started doing it in 2 steps. I do notice that after doing it in two steps, the file can be renamed as much as you want in LR and using the 'original filename/suffix' tags would then always keep referring to the name from the card that was imported.
 
Last edited:
Yep, I'm with you. We often call that the 'import filename' - i.e. the filename it has directly after importing (which is not necessarily the same as the name on the card). And I agree 'Original Filename' ought to be the card name, and there ought to be another called Import Filename for the current state.
 
Welcome to the forum Steve! Glad to hear it helped!
 
I have a problem on a similar line: I've just started using LR Classic 9.2, and can't for the life of me figure out how to show the 'original file name' in the Metadata panel. That field was always showing in my previous version, but not this one. I'm sure there is an embarrassingly easy setting to switch on, but I just can't find it. Any suggestions?
 
"Original Filename" in the Metadata Panel only appears (automatically) when a file has been renamed using Lightroom after it was imported, i.e. if you rename as part of the import process you will only see the File Name field. Furthermore, the "Original Filename" field would itself only appear in a couple of the Metadata Panel display types (EXIF & IPTC, Location). However, the Metadata display "Default" now displays the field "Preserved File Name", which I believe will show the pre-import filename (assuming you rename during import).

I'm not seeing any issues with 9.2 in this regard.
 
Thanks Jim. Unfortunately I don't think this is the case with my files. I always import first, convert to dng, cull the duds, and then rename. The glitch might be that i imported these files in to an earlier version of LR (I forget exactly which version, but it was fairly recent), and with this new version i decided to 'clean house' a bit and start with a new catalog. I would have thought that all the meta data would have survived intact (including the original camera file names), but apparently not.
 
If by "start with a new catalog' you mean that you imported all the images into a new catalog, then I can't say I'm surprised. AFAIK, Lightroom writes the filename of the imported files (as they are at the time of import, not as they may have been several rename iterations before) into the catalog database. That name becomes the "Preserved File Name", which will be the same as the File Name in the Metadata panel until/unless you subsequently rename again.

I don't know if the original SOOC file name is retained in the file's EXIF header when you rename a file, but if so it would seem that Lightroom doesn't access that during import if you're not seeing it anywhere in the Metadata panel.
 
ahh. that makes sense. Yes, i made a new catalog, and imported all my existing images to the new catalog. Too bad it's not something that survives in the metadata. It would be handy to have sometimes. (like now! :-0 ) Thanks for the help. b
 
Hello!!
I lost my renamed nef cause a disk failure. I have the files in my backup disk but with the camera filename.
So i have the catalog with the renamed photos and the files with the original filename. Is there any way to restore the catalog with the original filename?
I can't rename in lightroon because does not find the file...
 
Can we see a screenshot of one image so I can be sure of your situation?

What I want to see is if you have the "preserved file name" as in my screenshot. If it is the situation I think, I would be able to share with you a script which copies a dummy file to Whatever.cr2, making LR think Whatever.cr2 is not missing (as many as you want in one go). This means you can use LR's renaming to rename the missing files to the preserved file name, and you then replace the renamed files with the original camera filename files.
 

Attachments

  • Screen Shot 2020-05-07 at 21.50.44.png
    Screen Shot 2020-05-07 at 21.50.44.png
    17.3 KB · Views: 213
Good, tomorrow I will put the details together and maybe do a little video. It's not very complicated, but you have to understand the steps.
 
Status
Not open for further replies.
Back
Top