Fix spread splitter not keeping aspect ratio

This commit is contained in:
darodi
2023-01-14 00:31:11 +01:00
parent 12c663bc05
commit 2c19898952
4 changed files with 5 additions and 9 deletions
+2 -1
View File
@@ -309,7 +309,8 @@ class ComicPage:
method = Image.Resampling.BICUBIC
else:
method = Image.Resampling.LANCZOS
if self.opt.stretch or (self.opt.kfx and ('-KCC-B' in self.targetPath or '-KCC-C' in self.targetPath)):
if self.opt.stretch:
# if self.opt.stretch or (self.opt.kfx and ('-KCC-B' in self.targetPath or '-KCC-C' in self.targetPath)):
self.image = self.image.resize(self.size, method)
elif self.image.size[0] <= self.size[0] and self.image.size[1] <= self.size[1] and not self.opt.upscale:
if self.opt.format == 'CBZ' or self.opt.kfx: