From eb7d56c1b96afcbc013693cc0ae83e93e219bdf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Sun, 17 Mar 2013 10:45:46 +0100 Subject: [PATCH] Force upscaling for spitted pages Only when landscape mode is on. Without it smaller splitted pages looks really bad on PW. --- kcc/image.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kcc/image.py b/kcc/image.py index 0e6d929..c8fc450 100755 --- a/kcc/image.py +++ b/kcc/image.py @@ -159,10 +159,12 @@ class ComicPage: if isSplit and landscapeMode: borderh = (self.size[1] - self.image.size[1]) / 2 self.image = ImageOps.expand(self.image, border=(0, borderh), fill=fill) + method = Image.BILINEAR else: borderw = (self.size[0] - self.image.size[0]) / 2 borderh = (self.size[1] - self.image.size[1]) / 2 self.image = ImageOps.expand(self.image, border=(borderw, borderh), fill=fill) + return self.image else: method = Image.BILINEAR if stretch: