I’m trying to make a simple image processing sample to work, but I failing.
I don’t know if it’s a bug or I’m doing something very wrong.
I create a repository, trying to isolate the problem.
I using Hugo 0.37. The OS is Window 10 (x64).
Here is the repo link: https://gitlab.com/julianoaklein/hugo-image-test
The console error I’m receiving:
Change detected, rebuilding site
2018-03-30 09:22:12.392 -0300
Source changed "D:\\Projetos\\hugo\\image-test\\content\\authors\\juliano-appel-klein\\index.html": WRITE
ERROR 2018/03/30 09:22:12 error processing shortcode "shortcodes/imgproc.html" for page "authors\\juliano-appel-klein\\index.html": template: shortcodes/imgproc.html:7:34: executing "shortcodes/imgproc.html" at <$original.Resize>: can't evaluate field Resize in type resource.Resource
Total in 18 ms
The thing is the resource is a image.
If I remove the shortcode from “index.html”, I fall into another issue. The server runs, but I won’t display the image properly.
Can someone help me? Thanks in advance!