From e7081cf48592bfcc24308df19a372a80dc324632 Mon Sep 17 00:00:00 2001 From: Stephen Zhou Date: Sun, 22 Sep 2024 17:01:09 +0800 Subject: [PATCH] Revert "refactor: migrate to webp" This reverts commit 973553b0e9aadc6e182b262f565202602b768cda. --- apps/renderer/src/lib/img-proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/renderer/src/lib/img-proxy.ts b/apps/renderer/src/lib/img-proxy.ts index bc4c9e8021..91a5428bd5 100644 --- a/apps/renderer/src/lib/img-proxy.ts +++ b/apps/renderer/src/lib/img-proxy.ts @@ -9,7 +9,7 @@ export const getImageProxyUrl = ({ url: string width: number height: number -}) => `${env.VITE_IMGPROXY_URL}?url=${encodeURIComponent(url)}&width=${width}&height=${height}` +}) => `${env.VITE_IMGPROXY_URL}/unsafe/fit-in/${width}x${height}/${encodeURIComponent(url)}` export const replaceImgUrlIfNeed = (url: string) => { for (const rule of imageRefererMatches) {