1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

fix webtoon panel detection by doubling max height (#1115)

This commit is contained in:
Alex Xu
2025-10-15 14:31:06 -07:00
committed by GitHub
parent a795a84899
commit 3470d01367

View File

@@ -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: