From ca5854a8bd88b6034f975cb6062f3b4959cec7bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Sun, 10 Mar 2013 18:18:20 +0100 Subject: [PATCH] Real Panel View don't split in half --- kcc/image.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kcc/image.py b/kcc/image.py index 8121c84..52ef7e9 100755 --- a/kcc/image.py +++ b/kcc/image.py @@ -221,10 +221,10 @@ class ComicPage: def splitPageFakePanelView(self, targetdir, righttoleft=False): width, height = self.image.size - topleftbox = (0, 0, width / 2, height / 2) - toprightbox = (width / 2, 0, width, height / 2) - bottomleftbox = (0, height / 2, width / 2, height) - bototmrightbox = (width / 2, height / 2, width, height) + topleftbox = (0, 0, ((width / 2) + (width/9)), ((height / 2) + (height/9))) + toprightbox = ((width / 2) - (width/9)), 0, width, ((height / 2) + (height/9)) + bottomleftbox = (0, ((height / 2) - (height/9)), ((width / 2) + (width/9)), height) + bototmrightbox = (((width / 2) - (width/9)), ((height / 2) - (height/9)), width, height) filename = os.path.splitext(os.path.basename(self.origFileName)) file0 = targetdir + '/' + filename[0] + '-0' + filename[1] file1 = targetdir + '/' + filename[0] + '-1' + filename[1]