1
0
mirror of https://github.com/ciromattia/kcc synced 2026-01-01 10:59:32 +00:00

Force upscaling for spitted pages

Only when landscape mode is on.
Without it smaller splitted pages looks really bad on PW.
This commit is contained in:
Paweł Jastrzębski
2013-03-17 10:45:46 +01:00
parent f5b515ef79
commit eb7d56c1b9

View File

@@ -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: