repair resolution calculation for img2img

This commit is contained in:
AUTOMATIC1111
2024-01-07 20:45:24 +03:00
parent 174b71994f
commit 08f1926f30
2 changed files with 4 additions and 4 deletions

View File

@@ -99,8 +99,8 @@ def calc_resolution_hires(enable, width, height, hr_scale, hr_resize_x, hr_resiz
def resize_from_to_html(width, height, scale_by):
target_width = int(width * scale_by)
target_height = int(height * scale_by)
target_width = int(float(width) * scale_by)
target_height = int(float(height) * scale_by)
if not target_width or not target_height:
return "no image selected"