please support XMP tag "subject"
See original GitHub issueI discovered PiGallery2 only yesterday and I love it! However, many of my photos store individual labels in the XMP section “subject”. Unfortunately pigallery2 is unable to read (and search) such data.
I adapted PiGallery2 to fit my needs as follows: At line 204 of file ./src/backend/model/threading/MetadataLoader.js I added the following code:
if(exif.subject && exif.subject.value){
metadata.keywords = [];
for(let i=0; i < exif.subject.value.length; i++){
metadata.keywords.push(exif.subject.value[i].value);
}
}
This works well for me but as you can see, my code replaces the “keywords” by my “subject” values. This is of course not a good solution for somebody who uses “keywords” (I don’t use keywords). Hence my feature request to implement “subject” XMP metadata properly as a new property.
Please excuse my ignorance to do it by myself. I think to implement this properly, at least the data model, DTO’s and tests need to be adapted which I feel I’m not capable of. Thanks for your understanding and your effort!
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (10 by maintainers)
Top GitHub Comments
I usually let the opener verify that it is fixed. But in this case it’s not necessary 😃
Hi @bpatrik , I wonder why this issue is still tagged as open? I thought it has been resolved already. Am I missing something? Or do I have to close the issue by myself? Thanks!