From 53b36dd96b16db68475449cb3f7b845272d085e0 Mon Sep 17 00:00:00 2001 From: Alan Burns Date: Fri, 17 Apr 2026 17:31:52 -0500 Subject: [PATCH] Fixed a bug where outpainting was padding the wrong side of the image --- outpaint_config.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/outpaint_config.py b/outpaint_config.py index 6e33785..1ae8db5 100644 --- a/outpaint_config.py +++ b/outpaint_config.py @@ -194,9 +194,9 @@ class OutpaintPaddingComputeNode: else: horz_total = int(round(W * hp / 100.0)) if g in ("left", "top left", "bottom left"): - left, right = horz_total, 0 - elif g in ("right", "top right", "bottom right"): right, left = horz_total, 0 + elif g in ("right", "top right", "bottom right"): + left, right = horz_total, 0 else: left = horz_total // 2 right = horz_total - left @@ -207,9 +207,9 @@ class OutpaintPaddingComputeNode: else: vert_total = int(round(H * vp / 100.0)) if g in ("top", "top left", "top right"): - top, bottom = vert_total, 0 - elif g in ("bottom", "bottom left", "bottom right"): bottom, top = vert_total, 0 + elif g in ("bottom", "bottom left", "bottom right"): + top, bottom = vert_total, 0 else: top = vert_total // 2 bottom = vert_total - top