Skip to content

Commit

Permalink
feat(image-to-image): added ipc buffer (blib-la#194)
Browse files Browse the repository at this point in the history
## Motivation

* Make sure to also allow a buffer and not only base64 encoded string as
input

## Issues closed

<!-- List closed issues here -->
  • Loading branch information
TimPietrusky committed Apr 10, 2024
1 parent 4d54117 commit 4ac0905
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/electron/future/ipc/sdk.ts
Expand Up @@ -221,6 +221,18 @@ ipcMain.on(
break;
}

case "livePainting:imageBuffer": {
try {
const { buffer } = message.payload as any;

await fsp.writeFile(getCaptainTemporary("live-painting/input.png"), buffer);
} catch (error) {
console.error(error);
}

break;
}

case "cloneRepositories:start": {
const models = message.payload as {
repository: string;
Expand Down

0 comments on commit 4ac0905

Please sign in to comment.