From 2fbd4f8066f771246a4fb11b491a64893e8ce3c3 Mon Sep 17 00:00:00 2001 From: keyan Date: Mon, 2 Oct 2023 04:39:56 -0500 Subject: [PATCH] fix imgproxy using fill resizes rather than fit --- worker/imgproxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/imgproxy.js b/worker/imgproxy.js index d4b249e6..20d88604 100644 --- a/worker/imgproxy.js +++ b/worker/imgproxy.js @@ -114,7 +114,7 @@ export const createImgproxyUrls = async (id, text, { forceFetch }) => { imgproxyUrls[url] = {} for (const res of resolutions) { const [w, h] = res.split('x') - const processingOptions = `/rs:fill:${w}:${h}` + const processingOptions = `/rs:fit:${w}:${h}` imgproxyUrls[url][`${w}w`] = createImgproxyUrl(url, processingOptions) } }