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

EXIF processing/marshalling fails with "unsupported value: +Inf" #12741

Closed
mfg92 opened this issue Aug 10, 2024 · 3 comments · Fixed by #12743
Closed

EXIF processing/marshalling fails with "unsupported value: +Inf" #12741

mfg92 opened this issue Aug 10, 2024 · 3 comments · Fixed by #12743
Assignees

Comments

@mfg92
Copy link

mfg92 commented Aug 10, 2024

Description

I'm the maintainer of mfg92/hugo-shortcode-gallery. I have noticed that starting with Hugo 1.30.0 or 1.31.0 the EXIF data of some images can not be processed anymore. I'm getting this error:

...
execute of template failed at <$original.Exif>:
error calling Exif:
metadata init failed:
json:
error calling MarshalJSON for type exif.Tags:
unsupported value: +Inf 

The line that causes this issue on my side is this one.

My hugo.toml contains these two lines (if that matters):

[imaging.exif]
    includeFields = ".*"

This is the image that causes this problem, it is a focus stack of multiple images, created using Helicon Focus 8.2.0 and edited using Darktable 4.6.1:
2023-05-06-LB1A1860-1879_Stacked(C,Smoothing4)-Jumping spider

I'm assuming this has something to do with the switch of the EXIF library (72ff937).

What version of Hugo are you using (hugo version)?

0.131.0

Does this issue reproduce with the latest release?

yes

@mfg92
Copy link
Author

mfg92 commented Aug 11, 2024

Many thanks!

@alexvanderberkel
Copy link

@bep Is this fix already in version hugo version 0.133.0 reflected as I get a similar error while using the shortcode of @mfg92

.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/mfg92/hugo-shortcode-gallery@v1.3.0/layouts/shortcodes/gallery.html:122:21": execute of template failed: template: shortcodes/gallery.html:122:21: executing "shortcodes/gallery.html" at <$original.Exif>: error calling Exif: metadata init failed: json: error calling MarshalJSON for type exif.Tags: json: unsupported value: +Inf

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants