hugo icon indicating copy to clipboard operation
hugo copied to clipboard

XMP and IPTC image metadata support

Open LNA-DEV opened this issue 11 months ago • 3 comments
trafficstars

Hej. First of all thanks for this amazing project!

As said in #12651 the new metadata package supports XMP and IPTC metadata. Would be really nice to have this feature therefore I created this issue.

Is there any update / plan on this topic?

LNA-DEV avatar Dec 14 '24 10:12 LNA-DEV

Is there any update / plan on this topic?

Not really. The main challenge with this, as I remember back when I implemented the new library, is how to represent all these tags in a data structure. This gets incredible confusing when you start looking into it; grouping the tags by their source (EXIF, XMP, IPTC) may be fine in Adobe Lightroom, but I'm not sure it's very user friendly from Hugo (the same tag may be placed differently depending on the photo editor used) ... But as I said, I have not thought about this lately.

bep avatar Dec 14 '24 11:12 bep

I fully get your point. It really gets complicated if you think about it.

I thought maybe we could do some sort of guessing logic (for the most-used properties) and include a raw section so the user can, if they want to, fall back to it. But I’m not sure if a guessing logic of any sort is a good idea. You could do something like checking EXIF first and if null, checking IPTC and if that’s also null, taking the XMP property. But this could get a bit confusing if there are different values set in those sources. If well-documented and communicated, though, this might be a reasonable compromise.

But maybe you or someone else has a better idea^^

Anyway, I’m looking forward to it :smile:

LNA-DEV avatar Dec 15 '24 11:12 LNA-DEV

I have experimented with this a bit today. I think it would be most useful if we do something like I did in this pull request: https://github.com/gohugoio/hugo/pull/13539

This way existing pages still work the same but the user can find additional tags in the Exif object under Tags. (I am not sure here if IPTC and XMP should be place together with EXIF under a own Metadata object. But I think this could lead to confusion and could break support for existing sites. So I did not do it that way.)

Under Tags are all tags from every metadata category with the priority Exif > IPTC > XMP but if someone wants a specific tag from a specific category this is still possible because of the "raw" lists of tags.

LNA-DEV avatar Mar 29 '25 13:03 LNA-DEV