From ba8b6d23e8ceea3e5530a145cf7106f64486107f Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 11 Jun 2026 08:11:38 +0000 Subject: [PATCH] Fix LBM output never resized back to input dimensions PIL Image.resize returns a new image; the result was discarded, so the final output stayed at the snapped aspect-ratio bucket size instead of being restored to the original input size. https: //claude.ai/code/session_014QWKWgKvMevcuvfCnsYoT2 Co-Authored-By: Claude --- scripts/lbm_ext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lbm_ext.py b/scripts/lbm_ext.py index 02d0675a7..c3352e0bc 100644 --- a/scripts/lbm_ext.py +++ b/scripts/lbm_ext.py @@ -131,7 +131,7 @@ class LBMScript(scripts_manager.Script): model.to(device=devices.cpu) if output_image is not None: - output_image.resize((ori_h_bg, ori_w_bg)) + output_image = output_image.resize((ori_h_bg, ori_w_bg)) return processing.get_processed(p, [output_image]) else: return processing.Processed(p, [])