mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-03 16:45:55 +02:00
Use as Input sets size
Force the generate size to match the image size when clicking Use as Input.
This commit is contained in:
parent
8cd6ca6269
commit
33ca04b916
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user