mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-11 20:03:58 +02: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