From 0801109562e41fe110af3de04efc02e69758e27b Mon Sep 17 00:00:00 2001 From: Rizky Date: Wed, 13 Nov 2024 17:25:05 +0700 Subject: [PATCH] fix --- pkgs/api/_img.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/api/_img.ts b/pkgs/api/_img.ts index 98799c6..1391b6d 100644 --- a/pkgs/api/_img.ts +++ b/pkgs/api/_img.ts @@ -73,7 +73,7 @@ export const _ = { let out = img.resize(arg).webp({ quality: 75 }); out = out.webp(); - await Bun.write(file_name, await out.toBuffer()); + await Bun.write(file_name, new Uint8Array(await out.toBuffer())); file = Bun.file(file_name); }