Use Hugo's reflect.IsImageResourceProcessable to determine whether an image resource can actually be processed before attempting transforms (avoids errors on non-processable images, e.g. SVG/GIF).
Ref: https://gohugo.io/functions/reflect/isimageresourceprocessable/
Migrated from scratch/imageprocessing.md.
Use Hugo's
reflect.IsImageResourceProcessableto determine whether an image resource can actually be processed before attempting transforms (avoids errors on non-processable images, e.g. SVG/GIF).Ref: https://gohugo.io/functions/reflect/isimageresourceprocessable/
Migrated from
scratch/imageprocessing.md.