1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-12 17:26:23 +00:00

fix webtoon too tall (#1146)

This commit is contained in:
Alex Xu
2025-10-30 11:54:18 -07:00
committed by GitHub
parent 4371d14391
commit 5336870097

View File

@@ -62,7 +62,7 @@ def mergeDirectory(work):
imagesValid.append(i[0])
# Silently drop directories that contain too many images
# 131072 = GIMP_MAX_IMAGE_SIZE / 4
if targetHeight > 131072 * 2:
if targetHeight > 131072 * 3:
raise RuntimeError(f'Image too tall at {targetHeight} pixels.')
result = Image.new('RGB', (targetWidth, targetHeight))
y = 0