From aa0ecc41042f017f2990b9081f3ecafc391c8a3d Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Tue, 22 Nov 2022 00:09:55 +0100 Subject: [PATCH] [ci skip] Use webp instead of jpeg for thumbnails --- layouts/shortcodes/imgthumb.html | 2 +- layouts/shortcodes/multithumb.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/imgthumb.html b/layouts/shortcodes/imgthumb.html index 084d767..d0813cc 100644 --- a/layouts/shortcodes/imgthumb.html +++ b/layouts/shortcodes/imgthumb.html @@ -1,7 +1,7 @@ {{ $image := resources.GetMatch (.Get "src") }} {{ $size := .Get "size" }} {{/* Set the right options for Resize */}} -{{ $options := printf "%s %s %s" $size "jpg q90" "Box"}} +{{ $options := printf "%s %s %s" $size "webp q90 drawing" "Lanczos"}} {{ $imagethumbnail := $image.Resize $options }} diff --git a/layouts/shortcodes/multithumb.html b/layouts/shortcodes/multithumb.html index 3787feb..4443648 100644 --- a/layouts/shortcodes/multithumb.html +++ b/layouts/shortcodes/multithumb.html @@ -1,7 +1,7 @@