Closed joshproehl closed 7 months ago
Would welcome a PR for this!
Also I would note this blog post which documents some of this as well (I’ve cross linked from the Image docs too)
Closing as stale. I think what we have now is okay and the svgShortCircuit: "size"
feature if probably what you were expecting!
Having read https://www.11ty.dev/docs/plugins/image/#skip-raster-formats-for-svg, as well as the "expand to see the full list of options (defaults shown)" example of
I believed I understood that setting svgShortCircuit:false (default) would cause eleventy-img to not convert my SVG's to raster images.
This appears to be the opposite in practice, and as soon as I set svgShortCircuit:true, I get the desired behavior of my SVG file being copied directly, and no webp version being created.
If my understanding is correct, then perhaps the wording of the example could be changed to something like:
and the text in the https://www.11ty.dev/docs/plugins/image/#skip-raster-formats-for-svg section to:
plus the additional text about CMS-driven workflows, which I have not rewritten as I don't quite understand what its meaning is.