hugo-theme-hello-friend icon indicating copy to clipboard operation
hugo-theme-hello-friend copied to clipboard

Image Processing crashes on building a website

Open junkpiano opened this issue 2 years ago • 0 comments

I am trying to process images by using shortcode imgproc.html, but it crashes when building my blog.

My code is

{{< imgproc "/images/sample-image.jpg" Resize "250x" left >}}

The error message says that

execute of template failed: template: shortcodes/imgproc.html:9:36: executing "shortcodes/imgproc.html" at <$original.Resize>: nil pointer evaluating resource.Resource.Resize

It seems it fails to fetch and assign the original image.

Another shortcode like image works, so the image path is correct.

junkpiano avatar Sep 20 '22 03:09 junkpiano