Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gallery.html: read keywords from XPKeywords Exif tag #79

Closed
wants to merge 2 commits into from

Conversation

jbsilva
Copy link
Contributor

@jbsilva jbsilva commented Jul 7, 2024

This change allows reading keywords from the XPKeywords Exif tag (0x9c9e).

The decodeUTF16LE function was added as Hugo does not parse UCS-2 encoded strings correctly.

Use keywords in filterOptions.

I made this as Hugo does not support reading IPCT and XMP tags (see gohugoio/hugo#8586), but I can easily convert them to XPKeywords using exiftool -overwrite_original "-XPKeywords<Keywords" *.jpg (the tags will be comma-separated).

@jbsilva jbsilva force-pushed the master branch 2 times, most recently from deeb2b3 to 9e783f4 Compare July 7, 2024 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant