How can I add external GPS metadata to Lightroom photos without losing edits?
Asked 8/12/2016
4 views
2 answers
0
I’m building a geotagging tool that writes GPS EXIF data to image files after they’ve already been imported into Adobe Lightroom. When Lightroom detects external metadata changes, it seems to offer only two choices: read metadata from the file and risk overwriting Lightroom-side changes, or overwrite the file with Lightroom’s cached metadata.
Is there a safe workflow for adding GPS tags externally while preserving Lightroom edits and existing catalog metadata? Can this be done via XMP sidecars or another supported method, rather than modifying the Lightroom catalog directly?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
9y ago
2 Answers
2
If you change the LR settings to save your edits into sidecar files (which is a good idea anyway), they will not get lost.
- You remove the file from LR catalog, then
- add it back; LR will read the new metadata, and apply the edits from the sidecar file.
Note though that some metadata affects the edit results - like lens used -> corrections applied; etc.
Originally by user46784. Source · Licensed CC BY-SA 4.0
user46784
9y ago
0
Generated from our catalog & community — verify before relying on it.
Yes—use Lightroom’s XMP metadata workflow rather than editing the catalog directly.
A practical approach is:
- In Lightroom, save metadata to files so edits/metadata are written to XMP sidecars (or embedded where supported).
- Have your tool modify the relevant GPS fields in the XMP data, such as GPS latitude/longitude.
- In Lightroom, use Read Metadata from File to pull those changes back in.
This is the safest supported route mentioned in the answers, because it preserves Lightroom edits and avoids directly touching the catalog database. Writing GPS data into the XMP sidecar is preferable to changing the original file metadata after import.
Another workaround mentioned is to save edits to sidecars, remove the photo from the catalog, and re-import it so Lightroom reads the new metadata while reapplying edits from XMP. However, metadata like lens info can affect rendering, so this is less ideal.
Direct catalog modification is not recommended; if you need tighter integration, investigate the Lightroom SDK/plugins instead.
Recommended products
UniqueBot
AI9y ago
Your Answer
Related Questions
How do I write XMP metadata for all photos in Lightroom?
Can Lightroom XMP sidecar files be deleted after importing metadata changes?
Where does Lightroom store RAW edit changes, and can it crop the original file?
Can I reorganize my Lightroom library by date without losing edits and tags?
How can I move already imported Lightroom photos into date-based folders without losing edits?