From 172bf37b9df4050c8238db71d194afc06a29a016 Mon Sep 17 00:00:00 2001 From: Tanish Manku Date: Wed, 27 Aug 2025 15:10:04 -0700 Subject: [PATCH] No need to alpha mask because tauri does it --- frontend/apps/editor3d/app/src/pages/PageEdit/PageEdit.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/apps/editor3d/app/src/pages/PageEdit/PageEdit.tsx b/frontend/apps/editor3d/app/src/pages/PageEdit/PageEdit.tsx index 122147a79d..b4485cc82c 100644 --- a/frontend/apps/editor3d/app/src/pages/PageEdit/PageEdit.tsx +++ b/frontend/apps/editor3d/app/src/pages/PageEdit/PageEdit.tsx @@ -188,7 +188,8 @@ const PageEdit = () => { ); // Convert colored canvas to alpha mask - drawAlphaMask(fittedCanvas, rect.width(), rect.height()); + // NOTE: This isn't needed because the tauri backend uses the alpha channel anyway + // drawAlphaMask(fittedCanvas, rect.width(), rect.height()); const blob = await fittedCanvas.convertToBlob({ type: "image/png" }); const arrayBuffer = await blob.arrayBuffer();