diff options
author | bobzel <zzzman@gmail.com> | 2025-05-09 23:02:18 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-05-09 23:02:18 -0400 |
commit | afc2b90c3eab26a8a3d17bdb711652b68d2528d9 (patch) | |
tree | 58f9edb8a79c9e1e983c9cc4e8c07988e7dd5f1d /src/client/views/nodes/imageEditor/imageEditorUtils/ImageHandler.ts | |
parent | 076bdacc5f05dd124823981e49174d276a7aebfd (diff) | |
parent | 299398cb7e21259de3bf7597995840b84e7e0590 (diff) |
Merge branch 'master' into lanyi-branch
Diffstat (limited to 'src/client/views/nodes/imageEditor/imageEditorUtils/ImageHandler.ts')
-rw-r--r-- | src/client/views/nodes/imageEditor/imageEditorUtils/ImageHandler.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/imageEditor/imageEditorUtils/ImageHandler.ts b/src/client/views/nodes/imageEditor/imageEditorUtils/ImageHandler.ts index 1c6a38a24..d6093c6eb 100644 --- a/src/client/views/nodes/imageEditor/imageEditorUtils/ImageHandler.ts +++ b/src/client/views/nodes/imageEditor/imageEditorUtils/ImageHandler.ts @@ -75,7 +75,7 @@ export class ImageUtility { fd.append('mask', maskBlob, 'mask.png'); fd.append('prompt', prompt); fd.append('size', '1024x1024'); - fd.append('n', n ? JSON.stringify(n) : '1'); + fd.append('n', n ? n + '' : '1'); fd.append('response_format', 'b64_json'); try { @@ -268,14 +268,14 @@ export class ImageUtility { ctx.drawImage(img, xOffset, 0, width, height); // draw reflected image padding - this.drawHorizontalReflection(ctx, canvas, xOffset); + // this.drawHorizontalReflection(ctx, canvas, xOffset); } else { // vertical padding, y offset const yOffset = Math.floor((canvasSize - height) / 2); ctx.drawImage(img, 0, yOffset, width, height); // draw reflected image padding - this.drawVerticalReflection(ctx, canvas, yOffset); + // this.drawVerticalReflection(ctx, canvas, yOffset); } return canvas; }; |