From 52269b702597a71341f3b28f0aa05c47104e8dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=82=E3=82=8F=E3=82=8F=E3=82=8F=E3=81=A8=E3=83=BC?= =?UTF-8?q?=E3=81=AB=E3=82=85?= <17376330+u1-liquid@users.noreply.github.com> Date: Wed, 25 Dec 2024 11:03:01 +0900 Subject: [PATCH] alpha? --- packages/backend/src/core/AiService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/core/AiService.ts b/packages/backend/src/core/AiService.ts index 21ff045799ef..83a0cb5fa931 100644 --- a/packages/backend/src/core/AiService.ts +++ b/packages/backend/src/core/AiService.ts @@ -58,7 +58,7 @@ export class AiService { const sharp = await sharpBmp(path, mime); const { data, info } = await sharp .resize(299, 299, { fit: 'inside' }) - .ensureAlpha() + .removeAlpha() .raw({ depth: 'uchar' }) .toBuffer({ resolveWithObject: true });