mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-20 01:48:21 +02:00
Allow new resolutions with Use As Input
When Use As Input provides unlisted resolutions, add them first so that they'll be recognized as valid.
This commit is contained in:
parent
572b0329cf
commit
ad06e345c9
@ -626,15 +626,10 @@ function onUseAsInputClick(req, img) {
|
|||||||
|
|
||||||
//Force the image settings size to match the input, as inpaint currently only works correctly
|
//Force the image settings size to match the input, as inpaint currently only works correctly
|
||||||
//if input image and generate sizes match.
|
//if input image and generate sizes match.
|
||||||
var tempWidth = widthField.value;
|
addImageSizeOption(img.naturalWidth);
|
||||||
var tempHeight = heightField.value;
|
addImageSizeOption(img.naturalHeight);
|
||||||
widthField.value = img.naturalWidth;
|
widthField.value = img.naturalWidth;
|
||||||
heightField.value = img.naturalHeight;
|
heightField.value = img.naturalHeight;
|
||||||
//If it's unhappy with the new values, restore the original values.
|
|
||||||
if (widthField.value=="" || heightField.value=="") {
|
|
||||||
widthField.value = tempWidth;
|
|
||||||
heightField.value = tempHeight;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function onUseForControlnetClick(req, img) {
|
function onUseForControlnetClick(req, img) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user