mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-08 11:01:35 +00:00
No need to alpha mask because tauri does it
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user