This works fine for the most part. However, not all my original images are the same size, so one of them in particular is smaller than 800px tall, which means that two of the generated images are null. How do I go around this?
A lot of Hugo’s syntax is opaque to me, so it’s a bit difficult to find solutions. For example, is there a way to add a pipe to the $img.Fill or something where it would replace the empty image with the original in that case?
I tried using if statements, but it said I have the wrong number of parameters. {{ if ($img.Width ">=" "400") }} makes sense to me, but obviously not to the parser.
Why is the Fill function returning an empty image file? Is this a bug? How does one work around this?