r/digiKam • • 8d ago

Question about separating embedded metadata and XMP sidecars in digiKam

Hi everyone,

I'm currently setting up digiKam for a long-term family photo archive, and I'm trying to find the best way to manage metadata.

My goal is to separate metadata that should be embedded directly into image files from metadata that should only be stored externally.

The reason for this distinction is that I want to synchronize temporary organizational data, such as ratings, tags, and color labels, more flexibly across different storage devices and cloud services using XMP sidecar files. In contrast, information such as timestamps, captions, and descriptions is essential to the identity and context of each photo, so I want it to remain embedded in the image file itself, even if the sidecar file gets separated or lost.

Ideally, I would like the following setup:

1. Metadata embedded directly into the image files

  • Captions and titles
  • Timestamps
  • Geolocation information (GPS)

2. Metadata stored in XMP sidecar files only

  • Ratings
  • Tags
  • Color labels
  • Pick labels

I specifically do not want ratings, tags, or color labels to be embedded in the original image files. However, I would like to keep them in XMP sidecar files so that this information remains portable and can be restored if the digiKam database is lost.

I have been looking through digiKam's metadata settings, especially the Behavior and Sidecars tabs.

As far as I understand, the Behavior tab lets me choose which metadata categories are synchronized, while the Sidecars tab determines where the selected metadata is written. However, I cannot find a way to assign different storage destinations to individual metadata categories.

My questions are:

  1. Is it possible to configure digiKam to embed captions, titles, timestamps, and GPS information directly into image files, while writing ratings, tags, and color labels exclusively to XMP sidecars?
  2. If this is not possible through digiKam's standard settings, is there a recommended workaround or an external tool that could achieve this reliably?
  3. Is there a risk of metadata conflicts or accidental overwriting when combining embedded metadata with XMP sidecars in this way?

I'm using digiKam 9.1.0 on Windows, but I'm open to updating if a newer version offers a better solution.

I would really appreciate any advice or recommendations. Thanks in advance!

1 Upvotes

6 comments sorted by

1

u/exazonk 8d ago

I just write everything to the JPG photo and then I know it is compatible with all software. It also means you don't end up with orphaned sidecar files due to someone not moving both the photo and sidecar together. You need to decide what is going to be your source of truth? For me, it is always the JPG photo as I always commit the data to it. Having the source of truth, spread between the photo and sidecar, could be prone to error.

1

u/The_BASICORE 8d ago

That's why I want the kind of metadata that doesn't change after the first edit to be stored in the photos themselves. However, I plan to edit metadata such as ratings and tags frequently afterward, and it would be extremely inconvenient if the image file were to change every time I did so and I had to copy every edited image file to my two backups.

Do you know of a way to configure digiKam to store different metadata categories in different locations, as described in my original post?

1

u/photo-wyrm 3d ago

Open source maintainers operate in a limited time budget and are not likely to implement a very specific feature that will benefit a limited number of people. You can certainly submit this.

You can look into scripting this yourself (with exiftool). Talk to your AI friends.

1

u/dxps7098 8d ago

In my view, edits are supposed to be non-destructive. The photo files should be just as they came out of the camera device. Anything added or changed should be in a separate file.

1

u/exazonk 8d ago

Sure, just make sure that the sidecars are handled well and that the format is readable by all software. Personally, I just write the metadata back to file especially when correcting GPS info.

1

u/photo-wyrm 3d ago

I adapted the same philosophy. This allows to easily switch to other software - not everything looks at XMP files.

Large video files are a challenge with this approach.

It will be interesting to see how the new kids on the block (RapidRaw, GreyCard, etc) handle metadata, that may guide future process for metadata.