From 3c27f137fb0355cf52e11aba1f167e7620dfb822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Thu, 27 Nov 2025 12:48:45 +0100 Subject: [PATCH] fix: always pass outscale explicitly to ensure correct upscaling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The outscale parameter was set to None when scale == netscale, which caused unexpected downscaling behavior. Now explicitly pass the user's selected scale to ensure correct 2x or 4x output. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/processing/upscaler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/processing/upscaler.py b/src/processing/upscaler.py index 2ea4a87..6231f1f 100644 --- a/src/processing/upscaler.py +++ b/src/processing/upscaler.py @@ -214,7 +214,10 @@ def upscale_image( # Determine output scale if scale is None: scale = model_info.scale - outscale = scale / model_info.netscale if scale != model_info.netscale else None + + # Always pass outscale explicitly to ensure correct output size + # The outscale parameter directly controls the final output scale factor + outscale = scale # Process if progress_callback: