question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

please support XMP tag "subject"

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
bpatrikcommented, May 3, 2021

I usually let the opener verify that it is fixed. But in this case it’s not necessary 😃

0reactions
kagahdcommented, May 3, 2021

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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

<xmp> - HTML: HyperText Markup Language - MDN Web Docs
The <xmp> HTML element renders text between the start and end tags without interpreting the HTML in between and using a monospaced font....
Read more >
HTML | <xmp> tag - GeeksforGeeks
Any text content between this <xmp> tag will display as the user type in the code section, same width, same position ending everything...
Read more >
What was the <XMP> tag used for? - Stack Overflow
If you want to include special characters such as < , > and & within PRE tags, they must be escaped so that...
Read more >
What is the proper formatting of the Subject Tag in XMP?
"Will major software and websites recognize tags in XMP Subject?" is a very different question from "What is the proper formatting of the...
Read more >
XMP::dc\subject Meta Data Tag - photools.com
3500 files with unwritten meta data. The tag ist XMP::dc\subject. I searched for the tag to overwrite or delete it but coundnt find...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found