resources/image: Fix nilpointer for images with no Exif

E.g. PNG files.

Fixes #7688
This commit is contained in:
Bjørn Erik Pedersen
2020-09-14 17:19:30 +02:00
parent 214afe4c1b
commit cd00f7f966
4 changed files with 16 additions and 11 deletions

View File

@@ -58,7 +58,7 @@ type ImageOps interface {
Fit(spec string) (Image, error)
Resize(spec string) (Image, error)
Filter(filters ...interface{}) (Image, error)
Exif() (*exif.Exif, error)
Exif() *exif.Exif
}
type ResourceTypeProvider interface {