mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-08 06:05:18 -05:00
Add Inpainting Settings
- Enable and Disable Inpainting Box (with backend support) - Enable and Disable Bounding Box Darkening - Reset Bounding Box
This commit is contained in:
committed by
psychedelicious
parent
3ce60161d2
commit
5cae8206f9
@@ -101,13 +101,26 @@ export const frontendToBackendParameters = (
|
||||
lines,
|
||||
boundingBoxCoordinate: { x, y },
|
||||
boundingBoxDimensions: { width, height },
|
||||
shouldShowBoundingBox,
|
||||
} = inpaintingState;
|
||||
|
||||
let bx = x,
|
||||
by = y,
|
||||
bwidth = width,
|
||||
bheight = height;
|
||||
|
||||
if (!shouldShowBoundingBox) {
|
||||
bx = 0;
|
||||
by = 0;
|
||||
bwidth = maskImageElement.width;
|
||||
bheight = maskImageElement.height;
|
||||
}
|
||||
|
||||
const boundingBox = {
|
||||
x,
|
||||
y,
|
||||
width,
|
||||
height,
|
||||
x: bx,
|
||||
y: by,
|
||||
width: bwidth,
|
||||
height: bheight,
|
||||
};
|
||||
|
||||
generationParameters.init_img = imageToProcessUrl;
|
||||
|
||||
Reference in New Issue
Block a user