summaryrefslogtreecommitdiffhomepage
path: root/resources/image.go
diff options
context:
space:
mode:
authorBrandon Woodford <[email protected]>2021-06-21 20:41:41 -0500
committerBjørn Erik Pedersen <[email protected]>2021-07-05 10:31:35 +0200
commit07919d1ccb01733f4c6c5952e59228cecc9b26c8 (patch)
treef0ca5c7a0cdb1230746570128d88558d69833d87 /resources/image.go
parentf75f90079a6f2a239c8186faba5db5dbe6e36cb6 (diff)
downloadhugo-07919d1ccb01733f4c6c5952e59228cecc9b26c8.tar.gz
hugo-07919d1ccb01733f4c6c5952e59228cecc9b26c8.zip
exif: Log warning for metadata decode error
see #8519
Diffstat (limited to 'resources/image.go')
-rw-r--r--resources/image.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/image.go b/resources/image.go
index 4aec6bed5..3c70c9bf4 100644
--- a/resources/image.go
+++ b/resources/image.go
@@ -112,8 +112,8 @@ func (i *imageResource) getExif() *exif.Exif {
x, err := i.getSpec().imaging.DecodeExif(f)
if err != nil {
- i.metaInitErr = err
- return
+ i.getSpec().Logger.Warnf("Unable to decode Exif metadata from image: %s", i.Key())
+ return nil
}
i.meta = &imageMeta{Exif: x}