1
0
mirror of https://github.com/ciromattia/kcc synced 2026-07-24 21:53:13 +00:00

Fixed single empty page on end of book.

This commit is contained in:
Paweł Jastrzębski
2013-03-04 19:52:38 +01:00
parent c7f38a574f
commit e92ee81617
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ class ComicPage:
if (float(self.image.size[0]) / float(self.image.size[1])) < ratioDev:
diff = int(self.image.size[1] * ratioDev) - self.image.size[0]
if isSplit and (profile == 'K4' or profile == 'KHD'):
diff = 2
diff = 2
self.image = ImageOps.expand(self.image, border=(diff / 2, 0), fill=fill)
elif (float(self.image.size[0]) / float(self.image.size[1])) > ratioDev:
diff = int(self.image.size[0] / ratioDev) - self.image.size[1]