exif: Log warning for metadata decode error

see #8519
This commit is contained in:
Brandon Woodford 2021-06-21 20:41:41 -05:00 committed by Bjørn Erik Pedersen
parent f75f90079a
commit 07919d1ccb

View file

@ -112,8 +112,8 @@ func (i *imageResource) getExif() *exif.Exif {
x, err := i.getSpec().imaging.DecodeExif(f) x, err := i.getSpec().imaging.DecodeExif(f)
if err != nil { if err != nil {
i.metaInitErr = err i.getSpec().Logger.Warnf("Unable to decode Exif metadata from image: %s", i.Key())
return return nil
} }
i.meta = &imageMeta{Exif: x} i.meta = &imageMeta{Exif: x}