From dac9981705dd474a86b815eca3c0d9e02e7d52be Mon Sep 17 00:00:00 2001 From: Devin Haska Date: Tue, 20 Feb 2024 11:11:13 -0800 Subject: [PATCH] feat: update image shortcode to work with animated gifs --- config/shortcodes/image.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/shortcodes/image.js b/config/shortcodes/image.js index aa8df6a..fbce1d4 100644 --- a/config/shortcodes/image.js +++ b/config/shortcodes/image.js @@ -23,6 +23,9 @@ const imageShortcode = async ( formats: [...formats, null], outputDir: "dist/assets/images", urlPath: "/assets/images", + sharpOptions: { + animated: true, + }, }); const lowsrc = metadata.jpeg[metadata.jpeg.length - 1];