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

Make webtoon tall error more informative (#1151)

* Make webtoon tall error more informative

* fix mistake
This commit is contained in:
Alex Xu
2025-11-04 12:54:29 -08:00
committed by GitHub
parent 2398a5b1ac
commit b23c7744cb

View File

@@ -63,7 +63,7 @@ def mergeDirectory(work):
# Silently drop directories that contain too many images
# 131072 = GIMP_MAX_IMAGE_SIZE / 4
if targetHeight > 131072 * 3:
raise RuntimeError(f'Image too tall at {targetHeight} pixels.')
raise RuntimeError(f'Image too tall at {targetHeight} pixels. {targetWidth} pixels wide. Try using separate chapter folders or file fusion.')
result = Image.new('RGB', (targetWidth, targetHeight))
y = 0
for i in imagesValid: