Repository: gohugoio/hugo (language: go)

Issue:
EXIF processing/marshalling fails with "unsupported value: +Inf"
### Description

I'm the maintainer of [mfg92/hugo-shortcode-gallery](https://github.com/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](https://github.com/mfg92/hugo-shortcode-gallery/blob/master/layouts/shortcodes/gallery.html#L110).

My _hugo.toml_ contains these two lines (if that matters):
```TOML
[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](https://github.com/user-attachments/assets/67de12c8-e01c-4f2f-ad94-63a2158c1740)

I'm assuming this has something to do with the switch of the EXIF library (72ff937e11a6375da5b13788f855eafcc2452b85).

### What version of Hugo are you using (`hugo version`)?

0.131.0

### Does this issue reproduce with the latest release?

yes




Discussion / hints:

Fix patch:
diff --git a/go.mod b/go.mod
index 1e11da1996c..f9776279e42 100644
--- a/go.mod
+++ b/go.mod
@@ -15,7 +15,7 @@ require (
 	github.com/bep/golibsass v1.1.1
 	github.com/bep/gowebp v0.3.0
 	github.com/bep/helpers v0.4.0
-	github.com/bep/imagemeta v0.7.6
+	github.com/bep/imagemeta v0.8.0
 	github.com/bep/lazycache v0.4.0
 	github.com/bep/logg v0.4.0
 	github.com/bep/mclib v1.20400.20402
diff --git a/go.sum b/go.sum
index 8a1b2a68a77..ca963c2501a 100644
--- a/go.sum
+++ b/go.sum
@@ -139,6 +139,8 @@ github.com/bep/helpers v0.4.0 h1:ab9veaAiWY4ST48Oxp5usaqivDmYdB744fz+tcZ3Ifs=
 github.com/bep/helpers v0.4.0/go.mod h1:/QpHdmcPagDw7+RjkLFCvnlUc8lQ5kg4KDrEkb2Yyco=
 github.com/bep/imagemeta v0.7.6 h1:No64uhsEgUg/wz19yUC8BmHkFNMGhNu3X5puvsuvi2E=
 github.com/bep/imagemeta v0.7.6/go.mod h1:5piPAq5Qomh07m/dPPCLN3mDJyFusvUG7VwdRD/vX0s=
+github.com/bep/imagemeta v0.8.0 h1:4lqI839akl6lR61D7hmvaw2LDOxiXFZ4D0VIyHyGpc4=
+github.com/bep/imagemeta v0.8.0/go.mod h1:5piPAq5Qomh07m/dPPCLN3mDJyFusvUG7VwdRD/vX0s=
 github.com/bep/lazycache v0.4.0 h1:X8yVyWNVupPd4e1jV7efi3zb7ZV/qcjKQgIQ5aPbkYI=
 github.com/bep/lazycache v0.4.0/go.mod h1:NmRm7Dexh3pmR1EignYR8PjO2cWybFQ68+QgY3VMCSc=
 github.com/bep/logg v0.4.0 h1:luAo5mO4ZkhA5M1iDVDqDqnBBnlHjmtZF6VAyTp+nCQ=


Test patch: