1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 09:46:25 +00:00

Webtoon mode improvements

This commit is contained in:
Paweł Jastrzębski
2013-08-15 09:48:50 +02:00
parent 97e23c8f50
commit 6b002a8475

View File

@@ -84,8 +84,8 @@ def getImageFill(image):
def sanitizePanelSize(panel, options):
newPanels = []
if panel[2] > 1.5 * options.height:
if (panel[2] / 2) > 1.5 * options.height:
if panel[2] > 2 * options.height:
if (panel[2] / 2) > 2 * options.height:
diff = (panel[2] / 4)
newPanels.append([panel[0], panel[1] - diff*3, diff])
newPanels.append([panel[1] - diff*3, panel[1] - diff*2, diff])