Use as Input sets size

Force the generate size to match the image size when clicking Use as Input.
This commit is contained in:
Gary Wolfe 2024-12-22 21:22:37 -05:00
parent 8cd6ca6269
commit 33ca04b916

View File

@ -623,6 +623,11 @@ function onUseAsInputClick(req, img) {
initImagePreview.src = imgData
maskSetting.checked = false
//Force the image settings size to match the input, as inpaint currently only works correctly
//if input image and generate sizes match.
widthField.value = img.naturalWidth;
heightField.value = img.naturalHeight;
}
function onUseForControlnetClick(req, img) {