-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Image descriptions in EXIF data with non ASCII characters is missing #8079
Comments
This might not be a bug, but security features (think of |
Thanks for the quick reply. A minimal example of the template code that reproduces the issue is as follows:
This, combined with the two attached files, shows the error I'm seeing. The In contrast the The only difference, that I can see, is that the first file has a description that includes |
Hi @bep I'm not a Go developer so I cannot investigate the code. Is there anything else that I can do to help investigating this issue? |
The root cause of issue gohugoio#8079 was a non-breaking space (U+0160). `unicode.IsPrint` only allows the ASCII space (U+0020). Be more lenient by using `unicode.IsGraphic` instead. Fixes gohugoio#8079
The root cause of issue gohugoio#8079 was a non-breaking space (U+0160). `unicode.IsPrint` only allows the ASCII space (U+0020). Be more lenient by using `unicode.IsGraphic` instead. Fixes gohugoio#8079
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What version of Hugo are you using (
hugo version
)?Hugo Static Site Generator v0.79.1/extended darwin/amd64 BuildDate: unknown
(Installed using homebrew)
Does this issue reproduce with the latest release?
Yes
Description
I'm using Hugo to build a photo gallery website, and using the data in the
imagedescription
tag in the EXIF data to display a description below the image. I have noticed that images with non ASCII characters in the field have this element missing in the EXIF object.Steps to reproduce
Use the
Exif.Tags.ImageDescription
to display the image description in a template with a description like this:Observe that the
Exif.Tags.ImageDescription
variable is emptyUse the same template with an image description like this:
Observe that the
Exif.Tags.ImageDescription
variable contains the description from the image.Other characters that I've seen that cause this issue are:
“
instead of"
or‘
instead of'
or any emoji characterAdditional information
The EXIF tags are being written with version 12 of exiftool
The text was updated successfully, but these errors were encountered: