1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

Fix spread splitter not keeping aspect ratio

This commit is contained in:
darodi
2022-12-31 00:03:34 +01:00
parent 12c663bc05
commit 2c19898952
4 changed files with 5 additions and 9 deletions

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: