mirror of
https://github.com/ciromattia/kcc
synced 2026-10-01 15:12: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:
@@ -159,10 +159,12 @@ class ComicPage:
|
|||||||
if isSplit and landscapeMode:
|
if isSplit and landscapeMode:
|
||||||
borderh = (self.size[1] - self.image.size[1]) / 2
|
borderh = (self.size[1] - self.image.size[1]) / 2
|
||||||
self.image = ImageOps.expand(self.image, border=(0, borderh), fill=fill)
|
self.image = ImageOps.expand(self.image, border=(0, borderh), fill=fill)
|
||||||
|
method = Image.BILINEAR
|
||||||
else:
|
else:
|
||||||
borderw = (self.size[0] - self.image.size[0]) / 2
|
borderw = (self.size[0] - self.image.size[0]) / 2
|
||||||
borderh = (self.size[1] - self.image.size[1]) / 2
|
borderh = (self.size[1] - self.image.size[1]) / 2
|
||||||
self.image = ImageOps.expand(self.image, border=(borderw, borderh), fill=fill)
|
self.image = ImageOps.expand(self.image, border=(borderw, borderh), fill=fill)
|
||||||
|
return self.image
|
||||||
else:
|
else:
|
||||||
method = Image.BILINEAR
|
method = Image.BILINEAR
|
||||||
if stretch:
|
if stretch:
|
||||||
|
|||||||
Reference in New Issue
Block a user