From 381e4bcb86ac05115b329abba90f3168f4d97ebb Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 30 Sep 2024 22:51:53 +0100 Subject: [PATCH] use an optimized image url in getAverageColor to make it faster --- src/common/image-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/image-utils.ts b/src/common/image-utils.ts index fe37a86..d14c324 100644 --- a/src/common/image-utils.ts +++ b/src/common/image-utils.ts @@ -24,7 +24,7 @@ export const getAverageColor = cache(async (src: string) => { const before = performance.now(); console.log(`Getting average color of "${src}"...`); try { - const response = await ky.get(src); + const response = await ky.get(`https://img.fascinated.cc/upload/w_64,h_64/${src}`); if (response.status !== 200) { return undefined; }