Skip to content

refactor: use reflect.IsImageResourceProcessable to guard image processing #1027

Description

@davidsneighbour

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions