Adobe XMP¶
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 Title
, Copyright
, Artist
and 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 52,27.5814N
.
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.
File Samples¶
We would be happy to receive more XMP files for testing, either via pull request or email.
Specification¶
- Part 1: Data and Serialization Model
- Part 2: Standard Schemas
- Part 3: Storage in Files
- Adobe XMP Programmers Guide
- Adobe XMP Files Plugin SDK
- Adobe BSD 3-Clause License and XMP Toolkit SDK
Open Issues¶
- 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)
Released Features¶
- Store metadata in the filesystem #4
- Compare the quality and XMP compatibility of different RAW converters #65
External Resources¶
- trimmer-io/go-xmp - A native Go SDK for the Extensible Metadata Platform (XMP)
- XMP code in GIMP - Nothing beyond some comments. It was a code drop, we needed the feature, but unfortunately the original contributor left.