From 07919d1ccb01733f4c6c5952e59228cecc9b26c8 Mon Sep 17 00:00:00 2001 From: Brandon Woodford Date: Mon, 21 Jun 2021 20:41:41 -0500 Subject: [PATCH] exif: Log warning for metadata decode error see #8519 --- resources/image.go | 4 ++-- 1 file 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}