From c7f38a574f3d1cc2d65c3829fd62cca28318eabb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Mon, 4 Mar 2013 17:24:11 +0100 Subject: [PATCH] Fixed Landscape mode with upscaling enabled. --- kcc/image.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kcc/image.py b/kcc/image.py index c13a112..1cc186a 100755 --- a/kcc/image.py +++ b/kcc/image.py @@ -162,6 +162,8 @@ class ComicPage: ratioDev = float(self.size[0]) / float(self.size[1]) 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 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]