From b329a5b181e20d273778531f57f3f179f9361afc Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 25 Sep 2024 17:03:16 -0400 Subject: [PATCH] make resize images progressively load --- .eleventy.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 39b4548b..2bd338ab 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -76,6 +76,7 @@ module.exports = function (eleventyConfig) { let metadata = await Image(resizedImage, { formats: ["png"], outputDir: "out/img", + sharpPngOptions: { progressive: true} }); let imageAttributes = { @@ -145,10 +146,6 @@ async function resizeImage(src, width, height, mode) { width: width, height: height, fit: mode, - options: { - kernel: "nearest", - fastShrinkOnLoad: false, - }, }) .toBuffer(); }