mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-08 15:50:38 -07:00
repair resolution calculation for img2img
This commit is contained in:
parent
174b71994f
commit
08f1926f30
2 changed files with 4 additions and 4 deletions
|
|
@ -317,9 +317,9 @@ function selectCheckpoint(name) {
|
|||
gradioApp().getElementById('change_checkpoint').click();
|
||||
}
|
||||
|
||||
function currentImg2imgSourceResolution(w, h) {
|
||||
function currentImg2imgSourceResolution(w, h, r) {
|
||||
var img = gradioApp().querySelector('#mode_img2img > div[style="display: block;"] :is(img, canvas)');
|
||||
return img ? [img.naturalWidth || img.width, img.naturalHeight || img.height] : [0, 0];
|
||||
return img ? [img.naturalWidth || img.width, img.naturalHeight || img.height, r] : [0, 0, r];
|
||||
}
|
||||
|
||||
function updateImg2imgResizeToTextAfterChangingImage() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue