No need to alpha mask because tauri does it

This commit is contained in:
Tanish Manku committed 2025-08-27 15:10:04 -07:00
1 parent b148eda52c
commit 172bf37b9d
1 file changed
+2 -1
@@ -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();