@eleventy I'm struggling with the async shortcode issue when using the image plugin. The asyncEach and ifAsync Nunjucks syntax works, but breaks every code formatter I've tried. 😞

My current solution, using statsSync, kind of works but will soon be deprecated.

Moving the entire project to webC doesn't seem feasible for me.

The docs mention I can use <eleventyImage> with the Render Plugin. Is there an example of how this would look?

@nilsbinder hey Nils—sorry for the late reply, was on vacation!

If you’re looking for an alternative solution, I don’t think Njk -> Render Plugin -> WebC is the most straightforward solution here.

Have you looked at the Transform method? https://www.11ty.dev/docs/plugins/image/#eleventy-transform

Image

A docs page for Eleventy, a simpler static site generator.

Eleventy
@eleventy no worries. Fun thing. After I wrote this here I thought “maybe shifting all the image transformation to a transform would be a good idea” once I had a rough prof of concept running I got back to the docs and found the transform method right there. Works perfect in my situation. 🎉