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