1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-26 16:11:48 +00:00

comic2panel: Fixed processing of last panel

This commit is contained in:
Paweł Jastrzębski
2013-08-05 15:47:56 +02:00
parent faf16084a3
commit ad827828d7

View File

@@ -103,7 +103,7 @@ def splitImage(work):
draw.line([(0, y1Temp), (widthImg, y1Temp)], fill=(0, 255, 0))
draw.line([(0, y2Temp), (widthImg, y2Temp)], fill=(255, 0, 0))
panelHeight = y2Temp - y1Temp
if y2Temp != heightImg:
if y2Temp < heightImg:
# Panels that can't be cut nicely will be forcefully splitted
panelsCleaned = sanitizePanelSize([y1Temp, y2Temp, panelHeight], options)
for panel in panelsCleaned: