mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-19 17:39:16 +02:00
Use the correct size of the image when used as the input. Code credit: @AvidGameFan
This commit is contained in:
parent
55daf647a0
commit
19c6e10eda
@ -623,6 +623,13 @@ function onUseAsInputClick(req, img) {
|
|||||||
initImagePreview.src = imgData
|
initImagePreview.src = imgData
|
||||||
|
|
||||||
maskSetting.checked = false
|
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) {
|
function onUseForControlnetClick(req, img) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user