mirror of
https://github.com/photoprism/photoprism.git
synced 2026-03-02 22:57:18 -05:00
XMP sidecar dc:subject not imported as Keywords for JPEG (PhotoPrism Build 250707-d28b3101e) #2387
Labels
No labels
ai
android
api
auth
awesome
bug
bug
ci
cli
config
database
declined
deprecated
docker
docs 📚
documents
duplicate
easy
enhancement
enhancement
enhancement
epic
faces
feedback wanted
frontend
hacktoberfest
help wanted
idea
in-progress
incomplete
index
invalid
ios
labels
live
live
low-priority
macos
member-feature
metadata
mobile
nas
needs-analysis
no-coding-required
no-coding-required
observability
performance
places
please-test
plus-feature
priority
pro-feature
question
raspberry-pi
raw
released
released
released
research
resolved
security
sharing
tested
tests
third-party-issue
thumbnails
upgrade
upstream-issue
ux
vector
video
waiting
won't fix
won't fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/photoprism#2387
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vctrvf on GitHub (Aug 20, 2025).
1. What is not working as documented?
Information stored in sidecar XPM doesn't come to PP database / yml
2. How can we reproduce it?
Place JPEG and XMP sidecar with identical basename in Originals, e.g.:
20240127_111247.jpg
20240127_111247.jpg.xmp
XMP sidecar contains valid dc:subject with multiple items:
dc:subject
rdf:Bag
rdf:liArt</rdf:li>
rdf:liContemporaryArt</rdf:li>
rdf:liFineArt</rdf:li>
</rdf:Bag>
</dc:subject>
Run re-index:
photoprism index -f -c "2024/2024.01.27 - Erarta"
Check resulting YAML sidecar in /photoprism/storage/sidecar/.../20240127_111247.yml.
Expected behavior:
Keywords in YAML and UI should contain art, contemporaryart, fineart.
Sidecar values from dc:subject should override and/or merge into Keywords as documented.
According to docs [https://docs.photoprism.app/user-guide/library/metadata/], sidecar metadata should override other sources and dc:subject should be imported as Keywords.
Actual behavior:
photoprism index log shows:
INFO index: updated related xmp file '.../20240127_111247.jpg.xmp'
But YAML contains only automatically generated keywords (from filename/labels):
Details:
Keywords: erarta, museum, …
Subject: ContemporaryArt # taken from embedded JPEG
Keywords from sidecar (dc:subject) are completely ignored.
Same result when also adding lr:HierarchicalSubject.
It looks like only embedded metadata from JPEG and auto-generated labels are used, while sidecar XMP is ignored entirely.
6. Which software versions do you use?
(a) PhotoPrism Architecture & Build Number: AMD64
PhotoPrism® CE
Build 250707-d28b3101e
(b) Database Type & Version: SQLite 3.46.1
(c) Operating System Types & Versions:
Debian GNU/Linux 12 (bookworm)
Linux homenas 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64 GNU/Linux
(d) Browser Types & Versions: Chrome / Edge
(e) Ad Blockers, Browser Plugins, and/or Firewall Software? no
7. On what kind of device is PhotoPrism installed?
(a) Device / Processor Type: AMD Turion(tm) II Neo N54L Dual-Core Processor
RAM: 8 GB
total used free shared buff/cache available
Mem: 7.5Gi 2.2Gi 282Mi 22Mi 5.3Gi 5.3Gi
Swap: 975Mi 140Mi 835Mi
Storage:
20240127_111247.jpg.xmp.txt
docker-compose.yml.txt
@graciousgrey commented on GitHub (Aug 20, 2025):
Thank you for your feedback. This is because the dc:subject field is not supported yet.
You can find the related feature request here:
A full list of supported metadata fields is available here:
Other related issues: