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

@@ -183,7 +183,7 @@ func (r *resourceAdapter) Height() int {
return r.getImageOps().Height()
}
func (r *resourceAdapter) Exif() (*exif.Exif, error) {
func (r *resourceAdapter) Exif() *exif.Exif {
return r.getImageOps().Exif()
}