Repository navigation
[Feature] Standards-based XMP keyword read/write interoperability (dc:subject and lr:hierarchicalSubject) #33827
Closed
5TDg9
started this conversation in
Feature Request
Replies: 1 comment
|
We do read |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have searched the existing feature requests, both open and closed, to make sure this is not a duplicate request.
The feature
Background
Immich already provides valuable support for hierarchical tags and XMP sidecar files. However, its current keyword metadata handling relies primarily on the application-specific
digiKam:TagsListproperty.According to the current documentation, Immich reads keywords in the following priority order:
digiKam:TagsListlr:HierarchicalSubjectIPTC:KeywordsWhen writing tags to XMP sidecar files, Immich currently uses
digiKam:TagsList.The widely supported
dc:subjectproperty does not appear to be explicitly supported for either keyword import or export.Related issue and distinction from previous reports
I am aware of the related issue #28015:
#28015
That issue primarily addresses incomplete keyword extraction when hierarchical and flat keyword metadata coexist.
Although the issue was closed as completed on June 6, 2026, there is no linked pull request or visible explanation of how the reported limitation was resolved.
Furthermore, the current Immich XMP sidecar documentation still describes the same prioritized keyword import mechanism and lists
digiKam:TagsListas the only property used for keyword writeback.While there is some overlap with #28015 regarding keyword import, this feature request has a broader and distinct objective: consistent, bidirectional keyword interoperability through both reading and writing widely supported XMP properties.
In particular, writing
dc:subjectandlr:hierarchicalSubject, while maintaining compatibility withdigiKam:TagsList, was not part of the original issue.Even if the import issue has already been resolved, the proposed improvements to XMP keyword writeback would remain relevant.
Why this matters
The IPTC Photo Metadata Standard defines
dc:subjectas the XMP property for general keywords.Supporting this property would improve interoperability with numerous photo management applications without requiring them to understand application-specific metadata namespaces.
This is particularly relevant for users managing their photo collections across multiple applications, such as:
For example, the open-source Android gallery Aves explicitly uses
dc:subjectwhen writing XMP keywords.Proposed improvement
I would suggest extending Immich's existing metadata support to include:
dc:subject, both from embedded metadata and XMP sidecar files.dc:subjectwhen updating XMP sidecar files.lr:hierarchicalSubject.digiKam:TagsListsupport for backward compatibility.Ideally, flat keywords that are not already represented in hierarchical metadata should also be imported rather than silently ignored.
Example
Consider an Immich asset with the following hierarchical tags:
The corresponding XMP metadata could contain:
digiKam:TagsList
lr:hierarchicalSubject
dc:subject
This would preserve the hierarchical structure while also making the keywords accessible to applications that only support standard flat keyword lists.
The exact mapping and deduplication strategy could be determined by the developers.
Scope
This proposal is intentionally limited to improving Immich's existing server-side keyword metadata handling.
It does not require changes to the mobile application, offline metadata editing, embedded metadata writeback or a new synchronization architecture.
Benefits
For a self-hosted photo management application, ownership and portability of metadata are almost as important as ownership of the original media files.
References
Immich XMP sidecar documentation:
https://docs.immich.app/features/xmp-sidecars/
Current metadata service implementation:
https://github.com/immich-app/immich/blob/main/server/src/services/metadata.service.ts
IPTC Photo Metadata Standard:
https://iptc.org/standards/photo-metadata/iptc-standard/
Aves XMP keyword implementation:
deckerst/aves#1
Related Immich issue:
#28015
Thank you for considering this improvement!
Platform
All reactions