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:
1 parent
f5b515ef79
commit
eb7d56c1b9
1 file changed
+2
@@ -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