Skip to content

Commit

Permalink
exif: Log warning for metadata decode error
Browse files Browse the repository at this point in the history
see #8519
  • Loading branch information
IveGotNorto authored and bep committed Jul 5, 2021
1 parent f75f900 commit 07919d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 07919d1

Please sign in to comment.