This commit is contained in:
Rizky 2024-11-13 17:25:05 +07:00
parent 67deac8114
commit 0801109562
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}