Saturday, 6 January 2018

file management - How do I restore Lightroom photo metadata from a backup?


Yesterday I ran a bunch of my photos through exiftool in order to change their lens information. (I shoot some lenses on adapters and so the lens names and focal lengths have to be set manually.)


After exiftool was done with the photos I selected them in Lightroom and did Metadata → Read Metadata From File. Great, the lens names are there now! I didn’t realize that doing this would also reset Lightroom’s information about modifications to the files. Now those hundreds of files have lost the edits I’ve made to them!


I have backups both of the Lightroom catalog and of the photo files themselves. How can I use these backups to restore my modifications to the files?


Ideally the new lens metadata would also be kept, although my edits are more important. And in the future, do I just need to make sure I run exiftool before editing photos in Lightroom, or is there a way to reread the file’s metadata while keeping Lightroom’s modification info intact?



Answer




To restore only files with lost modifications:



  1. Open your gallery backup in Lightroom

  2. Select those photos and choose File->Export as Catalog. You could also save metadata to files, but that does not include all data (for example, flags are not included, while color labels and stars are).

  3. Open your original catalog again

  4. Delete files you just exported (only from catalog; not from the disk).

  5. Select File->Import from Another Catalog and select catalog from step 2.


In this process, your custom lens information is overwritten, and you have to redo it.


Workflow to avoid this in the future:




  1. Import into Lightroom

  2. Make modifications

  3. Save your modifications to original files/sidecars. In grid view, select all appropriate images, right-click and select Metadata->Save Metadata to Files (alternatively, ctrl+s / cmd+s

  4. Make your modifications with exiftool

  5. Reread metadata to Lightroom.


Do note that not all information is stored in metadata. For example, Pick flags are part of Lightroom library, not metadata. If in step 5 files are imported to a new library, flags are not included (but color labels and stars are).


No comments:

Post a Comment

Why is the front element of a telephoto lens larger than a wide angle lens?

A wide angle lens has a wide angle of view, therefore it would make sense that the front of the lens would also be wide. A telephoto lens ha...