mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
resources/image: Fix nilpointer for images with no Exif
E.g. PNG files. Fixes #7688
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user