mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
notes
This commit is contained in:
1 parent
00a9fa9d3c
commit
c9156a7ec6
1 file changed
+7
@@ -76,6 +76,13 @@ const PageDraw = () => {
|
||||
console.error("No node ID received from background removal");
|
||||
return;
|
||||
}
|
||||
// const base64String = response.payload?.base64_bytes as string;
|
||||
// const binaryString = atob(base64String);
|
||||
// const bytes = Uint8Array.from(binaryString, (c) => c.charCodeAt(0));
|
||||
// const blob = new Blob([bytes], { type: "image/png" });
|
||||
// const file = new File([blob], "generated_image.png", {
|
||||
// type: blob.type,
|
||||
// });
|
||||
store.finishRemoveBackground(
|
||||
nodeId,
|
||||
event.media_token,
|
||||
|
||||
Reference in new issue
Block a user