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:
- Open your gallery backup in Lightroom
- 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).
- Open your original catalog again
- Delete files you just exported (only from catalog; not from the disk).
- 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:
- Import into Lightroom
- Make modifications
- 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
- Make your modifications with exiftool
- 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