Nil pointer evaluating resource.Resource

I currently have the variable .Params.image which returns: "/images/840ef643-14b0-487a-a85c-ca309748cd20.jpeg".

I am wanting to resize these images.

I have tried:

    {{ $image := resources.GetMatch "/images/6ad021e0-90a2-49df-96f6-8c6b55dbb4e2.jpeg" }}
    {{ $thumb := $image.Fill "100x100" }}

But this returns the error:

at <$image.Fill>: nil pointer evaluating resource.Resource.Fill

My project structure is:

static/images/

Needed to set:

assetDir = "static"

in my config

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.