#Does Immich pulltag info from sidecars?

1 messages · Page 1 of 1 (latest)

lucid falcon
#

Hi. First, praise: Immich looks gorgeous, seems very fast, and has a full feature set - and thank you for making FOSS that I can host myself!

Now, question: Does Immich read tag information from XMP sidecars? The documentation makes it sound like it does, but I imported ~50 images and videos, about half of which have sidecars, and the tags in those sidecars either didn't get picked up by Immich - or I don't know where to find it (I'm looking at an asset's "Info", but I'd also guess that if Immich picked up tags, there would be a "Tags" item in the menu or tags would be searchable). I ran the "Extract Metadata" (All and Missing) and "Sidecar Metadata" (Sync and Discover) jobs, but the tags were still not picked up.

The tags are in multiple formats, though not exif.

...
   acdsee:categories="<Categories><Category Assigned="1">Sam</Category><Category Assigned="1">Vacation</Category></Categories>"
...
   <digiKam:TagsList>
    <rdf:Seq>
     <rdf:li>Sam</rdf:li>
     <rdf:li>Vacation</rdf:li>
    </rdf:Seq>
   </digiKam:TagsList>
   <MicrosoftPhoto:LastKeywordXMP>
    <rdf:Bag>
     <rdf:li>Sam</rdf:li>
     <rdf:li>Vacation</rdf:li>
    </rdf:Bag>
   </MicrosoftPhoto:LastKeywordXMP>
   <lr:hierarchicalSubject>
    <rdf:Bag>
     <rdf:li>Sam</rdf:li>
     <rdf:li>Vacation</rdf:li>
    </rdf:Bag>
   </lr:hierarchicalSubject>
   <mediapro:CatalogSets>
    <rdf:Bag>
     <rdf:li>Sam</rdf:li>
     <rdf:li>Vacation</rdf:li>
    </rdf:Bag>
   </mediapro:CatalogSets>
   <dc:subject>
    <rdf:Bag>
     <rdf:li>Sam</rdf:li>
     <rdf:li>Vacation</rdf:li>
    </rdf:Bag>
   </dc:subject>
  </rdf:Description>
 </rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>
south crypt
tawdry void
#

Immich does support reading data from xmp files, but we only use a handful of values right now. Not all data from exif goes into the database and shows up in the ui

lucid falcon
#

@south crypt, I did use the CLI to upload the assets, from within the docker container that's running Immich. Maybe I'm not looking in the right place. If Immich imported my tags, where could I see them in the interface?

#

@tawdry void, based on the snip from one of my sidecar.xml files, would Immich read any of these tags?

tawdry void
#

No, we don't pull tags or description from exif currently.

lucid falcon
#

What does "from exif" mean? I know exif is a tool to manage metadata, but my sidecars were created by Digikam, and looking at the tags it looks like none of them are "exif" (the sidecars do have many "exif" values like camera and lens, but none of the tags say "exif").

south crypt
tawdry void
#

We use it generally for "image and video metadata", which can come from both the original file and xmp sidecar.

#

There are a bunch of support properties though, we are only saving a handful of them in the database for use right now.

#

We are using:

  • ImageHeight
  • ImageWidth
  • ExposureTime
  • FNumber
  • FocalLength
    etc.
lucid falcon
#

ah i see. thanks for explaining. So any tags/faces/comments/ratings/etc that were added elsewhere are likely not part of Immich at the moment

tawdry void
#

Correct. We have plans to add support for more "exif tags" (properties/values) in the future.

#

For example, we could add a new database column "rating", save the value of tags.Rating to the database, and then display it in the UI, etc. Right now we've started with the most common/consistent tags. There is a lot of inconsistency when it comes to these properties.

lucid falcon
#

if i add/name faces and define albums in Immich, does immich store that in the asset and/or in a sidecar, or only in Immich's database?

south crypt
#

Only to local Immich database

#

we might integrate write those information to the sidecar file in the future

tawdry void
#

Right, there is a feature request to synchronize the metadata from immich back to a sidecar file.

lucid falcon
#

sounds good

tawdry void
#

It is semi complicated to read additional things like description and support manually setting a description in the app. If you re-run metadata extraction does you custom description get overwritten by the one in the database, etc. Until we have writing it is tricky to manage reading data from exif that is also editable in the UI. After we support synchronizing I think it will be easier to support things like tags, description, etc. from exif.