XMP (Extensible Metadata Platform) is the standard sidecar file format supported by Adobe Lightroom. While YAML files might be easier to understand, read and edit for humans, using the XML-based XMP format simplifies importing metadata from Lightroom and we can leverage a documented standard. Ideally, data can be kept in sync continuously between PhotoPrism and other photo management applications.
A proof-of-concept for reading
Description is implemented but full support is a lot more work, contributions welcome. One issue is proper XML parsing in Go as basic types like date and time are not supported by
xml.Unmarshaler. GPS coordinates are not stored as float but as a string like
The original plan to build upon
go-xmp didn't work out as we couldn't read many fields, so we're using pure Go for now until we find a way to get the data we need with
go-xmp. It might be a bug and/or it's an issue with our specific XMP files.
Please send more XMP files for testing (pull request):
- Experiment with Adobe Lightroom to see how it uses sidecar files. The new version doesn't seem to use XMP to automatically sync metadata anymore, probably because Adobe focuses on cloud storage. Needs further investigation.
- Create a matrix showing what fields are used/supported by which application/tool (Photoshop, Lightroom, Darktable and others, see
- Read http://www.exiv2.org/tags-xmp-crs.html (Camera Raw Schema)
- Store metadata in the filesystem #4
- Compare the quality and XMP compatibility of different RAW converters #65
- https://github.com/trimmer-io/go-xmp - A native Go SDK for the Extensible Metadata Platform (XMP)
- Adobe XMP Specification Part 1, Part 2 and Part 3, a.k.a ISO 16684-1:2011(E)
- XMP code in GIMP - Nothing beyond some comments. It was a code drop, we needed the feature, but unfortunately the original contributor left.