Skip to content

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.

RAW Conversion

PhotoPrism currently supports Darktable and RawTherapee as RAW image converters (as well as Sips on macOS). Darktable fully supports XMP sidecar files, RawTherapee might only partially. However, XMP is only a "container" format, so the fields (namespaces) used there to indicate how an image should be converted (as well as other metadata) differ between Lightroom/Photoshop, Darktable, and RawTherapee.

In other words, just because an application generally supports XMP that doesn't mean it can use metadata created with another application or by another vendor like Adobe. If you think that's confusing, well, that's because it is. You have an open format, but you still suffer from vendor lock-in - probably not entirely unintentional on Adobe's part.

From our experience, some basic edits done with Adobe tools - such as cropping - might be preserved when you convert the same RAW image with other software like Darktable. Advanced edits, such as lens or color corrections, will likely not be applied.

Learn more ›

File Samples

We would be happy to receive more XMP files for testing, either via pull request or email.

Specification

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

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.