mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-07-12 12:25:08 +02:00
Use the correct size of the image when used as the input. Code credit: @AvidGameFan
This commit is contained in:
@ -611,6 +611,13 @@ 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.
|
||||
addImageSizeOption(img.naturalWidth);
|
||||
addImageSizeOption(img.naturalHeight);
|
||||
widthField.value = img.naturalWidth;
|
||||
heightField.value = img.naturalHeight;
|
||||
}
|
||||
|
||||
function onUseForControlnetClick(req, img) {
|
||||
|
Reference in New Issue
Block a user