From 6aac46e8a09ea605dd65c7274e901c7008ad5f1f Mon Sep 17 00:00:00 2001 From: TrebledJ <39648915+TrebledJ@users.noreply.github.com> Date: Sun, 5 Nov 2023 07:57:03 +0800 Subject: [PATCH] chore: use largest image instead for resolveImageOutputPath --- eleventy/image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eleventy/image.js b/eleventy/image.js index a2ee615b7..8c3555b28 100644 --- a/eleventy/image.js +++ b/eleventy/image.js @@ -221,7 +221,7 @@ module.exports = function (eleventyConfig) { const file = resolveResourcePath(page, src); const { ext, options } = getOptions(file); const metadata = eleventyImage.statsSync(file, options); - return metadata[ext][0].url; + return metadata[ext][metadata[ext].length - 1].url; }); // Eleventy Image shortcode