From 6d65843f7871a6da2faa4fe7f2d4fba28d7dba13 Mon Sep 17 00:00:00 2001 From: Skystryder Date: Sat, 28 Jan 2023 18:00:08 -0800 Subject: [PATCH] Also increase the size for proxy. --- packages/backend/src/server/proxy/proxy-media.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/proxy/proxy-media.ts b/packages/backend/src/server/proxy/proxy-media.ts index 47ede2159..a9c257bfe 100644 --- a/packages/backend/src/server/proxy/proxy-media.ts +++ b/packages/backend/src/server/proxy/proxy-media.ts @@ -31,9 +31,9 @@ export async function proxyMedia(ctx: Koa.Context) { let image: IImage; if ("static" in ctx.query && isConvertibleImage) { - image = await convertToWebp(path, 498, 280); + image = await convertToWebp(path, 996, 560); } else if ("preview" in ctx.query && isConvertibleImage) { - image = await convertToWebp(path, 200, 200); + image = await convertToWebp(path, 400, 400); } else if ("badge" in ctx.query) { if (!isConvertibleImage) { // 画像でないなら404でお茶を濁す