Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Linking files

New Here ,
Oct 01, 2024 Oct 01, 2024

I have a library with processed images. Unfortunately the file names have changed. Is there a way to link the files without having to do this file by file (more then 1000 images)

TOPICS
macOS
689
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 01, 2024 Oct 01, 2024

If the file names were changed outside of LrC (in your operating system, or via some other third party software) then there really is no other way than file by file.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 01, 2024 Oct 01, 2024

Is it possible you can again rename them to their original filenames? - Using Finder or a Mac rename app. (Perhaps the original camera filename is embedded in your re-named files).

Do you have backups of the camera originals that you can copy and paste over the renamed files?

 

Regards. My System: Windows-11, Lightroom-Classic 14.5.1, Photoshop 26.10, ACR 17.5, Lightroom 8.5, Lr-iOS 10.4.0, Bridge 15.1.1 .
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 02, 2024 Oct 02, 2024

When I imported them into lightroom, I renamed them with a counter trailer, so it's in fact completely arbitrary.
Doesn't Lightroom keep a hash of the photo in his catalogue (that maybe is used to avoid duplicates )? If yes then I could write some scripting to - based on that hash - rename the 'new' ones programmatically

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 02, 2024 Oct 02, 2024
quote

When I imported them into lightroom, I renamed them with a counter trailer, so it's in fact completely arbitrary.
Doesn't Lightroom keep a hash of the photo in his catalogue (that maybe is used to avoid duplicates )? If yes then I could write some scripting to - based on that hash - rename the 'new' ones programmatically


By @JanVerbeke

 

If you did the rename inside of LrC, then the original name is stored in the database somewhere. However, it sounds like you did not rename inside of LrC, and so LrC has no knowledge that photo DSC_0001.JPG is now FredFlintstone275.JPG (or whatever). So the LrC database can't help you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 02, 2024 Oct 02, 2024

Have you tried a Synchronize Folder operation? This will remove old entries and add files that aren't in the database.

https://helpx.adobe.com/lightroom-classic/help/create-folders.html

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 02, 2024 Oct 02, 2024

I would definitely avoid synchronize folders. The photos in the catalog that don't exist in the folder, because the file names have changed (which is all photos), will be removed from the catalog, and their edits and user-provided metadata will also be gone. I don't see how this helps. It sounds to me like this makes things worse.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 02, 2024 Oct 02, 2024

I write all changes to XMP, and of course any changes to files with internal metadata are already in the files. The OP would lose collections and such but not core file data.

There is not AFAIK any file checksum or other data written to the database, this would take forever and use a huge amount of disk space.

OP, I guess it depends on what you mean by processed photos. Are these RAW files? DNGs? PSD files? What kind of processing? Do you have a backup (Time Machine maybe?) with the original files?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 02, 2024 Oct 02, 2024
quote

I write all changes to XMP, and of course any changes to files with internal metadata are already in the files. The OP would lose collections and such but not core file data.

There is not AFAIK any file checksum or other data written to the database, this would take forever and use a huge amount of disk space.

OP, I guess it depends on what you mean by processed photos. Are these RAW files? DNGs? PSD files? What kind of processing? Do you have a backup (Time Machine maybe?) with the original files?


By @Lumigraphics

 

OP would still have to associate the XMP files with the renamed photos.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 02, 2024 Oct 02, 2024

I always do the original renaming in lightroom. The question is, do the recovered new files contain the original name ? And how can I link the files based on the original name ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 02, 2024 Oct 02, 2024
quote

I always do the original renaming in lightroom. The question is, do the recovered new files contain the original name ? And how can I link the files based on the original name ?


By @FotoVerbeke

 

Hi, so you did the renaming in LrC? Then you should not have to re-link the files at all. So I am confused, what is the problem?

 

What "recovered new files" are you talking about in the context of this topic? This is the first time you have mentioned "recovered new files", please explain this further.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 02, 2024 Oct 02, 2024
The files got renamed by mistake by an external tool. The wrong path was passed to a renaming tool 😒
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 02, 2024 Oct 02, 2024

What KIND of files? Are these RAW files or what? Does this renaming tool preserve the old filename?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 02, 2024 Oct 02, 2024
Raw files. I think exif is still ok.
Can I rename the file in the catalogue if they are not linked ?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 02, 2024 Oct 02, 2024
LATEST
quote
Raw files. I think exif is still ok.Can I rename the file in the catalogue if they are not linked ?
By @JanVerbeke

 

No, you cannot rename the files in LrC because LrC doesn't know where the photos are located. You have to re-link them.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 02, 2024 Oct 02, 2024

So unless you have backups of the un-renamed originals (as suggested by @Rob_Cullen ), I think you would have to re-link the photos 1-by-1.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines