From 92561f373eefe41c6fa3cef04bb53e1ce7783a06 Mon Sep 17 00:00:00 2001 From: blepping Date: Sun, 28 Jan 2024 23:06:47 -0700 Subject: [PATCH] Yet again --- py/betterTaesdPreview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/betterTaesdPreview.py b/py/betterTaesdPreview.py index e09348f..d038500 100644 --- a/py/betterTaesdPreview.py +++ b/py/betterTaesdPreview.py @@ -63,7 +63,7 @@ class BetterTAESDPreviewer(_ORIG_PREVIEWER): # Very wide images - prioritize vertical layout. cols = min(math.ceil(batch_size / 4), max_cols) else: - cols = min(math.ceil(batch_size / ratio / 2.0), max_cols) + cols = min(math.ceil(batch_size / math.ceil(ratio) / 2.0), max_cols) rows = math.ceil(batch_size / cols) return cols, rows