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 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-06-11 08:11:38 +00:00
committed by QualiaRain
parent fd38a9bf63
commit ba8b6d23e8
+1 -1
View File
@@ -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, [])