Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Image Processing crashes on building a website #301

Open
junkpiano opened this issue Sep 20, 2022 · 0 comments
Open

Image Processing crashes on building a website #301

junkpiano opened this issue Sep 20, 2022 · 0 comments

Comments

@junkpiano
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant