From 11e648f6c75de2fb22460d34a618dbb3aa6df0bc Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Mon, 12 Sep 2022 16:17:32 +0300 Subject: allow resizing into non-integer sizes --- modules/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/images.py') diff --git a/modules/images.py b/modules/images.py index 4befddf0..334f8fec 100644 --- a/modules/images.py +++ b/modules/images.py @@ -332,7 +332,7 @@ class Upscaler: img = self.do_upscale(img) if img.width != w or img.height != h: - img = img.resize((w, h), resample=LANCZOS) + img = img.resize((int(w), int(h)), resample=LANCZOS) return img -- cgit v1.2.1