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:
+1
-1
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user