1
0
mirror of https://github.com/ciromattia/kcc synced 2026-07-05 04:25:31 +00:00

Real Panel View don't split in half

This commit is contained in:
Paweł Jastrzębski
2013-03-10 18:18:20 +01:00
parent 712f728a5e
commit ca5854a8bd
+4 -4
View File
@@ -221,10 +221,10 @@ class ComicPage:
def splitPageFakePanelView(self, targetdir, righttoleft=False): def splitPageFakePanelView(self, targetdir, righttoleft=False):
width, height = self.image.size width, height = self.image.size
topleftbox = (0, 0, width / 2, height / 2) topleftbox = (0, 0, ((width / 2) + (width/9)), ((height / 2) + (height/9)))
toprightbox = (width / 2, 0, width, height / 2) toprightbox = ((width / 2) - (width/9)), 0, width, ((height / 2) + (height/9))
bottomleftbox = (0, height / 2, width / 2, height) bottomleftbox = (0, ((height / 2) - (height/9)), ((width / 2) + (width/9)), height)
bototmrightbox = (width / 2, height / 2, width, height) bototmrightbox = (((width / 2) - (width/9)), ((height / 2) - (height/9)), width, height)
filename = os.path.splitext(os.path.basename(self.origFileName)) filename = os.path.splitext(os.path.basename(self.origFileName))
file0 = targetdir + '/' + filename[0] + '-0' + filename[1] file0 = targetdir + '/' + filename[0] + '-0' + filename[1]
file1 = targetdir + '/' + filename[0] + '-1' + filename[1] file1 = targetdir + '/' + filename[0] + '-1' + filename[1]