From 3470d01367c356401f423577da961cf9861ca927 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Wed, 15 Oct 2025 14:31:06 -0700 Subject: [PATCH] fix webtoon panel detection by doubling max height (#1115) --- kindlecomicconverter/comic2panel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kindlecomicconverter/comic2panel.py b/kindlecomicconverter/comic2panel.py index be216cf..0d757a4 100644 --- a/kindlecomicconverter/comic2panel.py +++ b/kindlecomicconverter/comic2panel.py @@ -58,8 +58,8 @@ def mergeDirectory(work): imagesValid.append(i[0]) # Silently drop directories that contain too many images # 131072 = GIMP_MAX_IMAGE_SIZE / 4 - if targetHeight > 131072: - return None + if targetHeight > 131072 * 2: + raise RuntimeError(f'Image too tall at {targetHeight} pixels.') result = Image.new('RGB', (targetWidth, targetHeight)) y = 0 for i in imagesValid: