From b6f1fe888272e56d138c1a2936124cc48ca7288b Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Fri, 13 Dec 2024 09:12:16 -0800 Subject: [PATCH] no rotate --- kindlecomicconverter/image.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kindlecomicconverter/image.py b/kindlecomicconverter/image.py index 83d6854e..572dd056 100755 --- a/kindlecomicconverter/image.py +++ b/kindlecomicconverter/image.py @@ -168,7 +168,7 @@ def splitCheck(self): self.payload.append(['N', self.source, new_image, self.color, self.fill]) elif (width > height) != (dstwidth > dstheight) and width <= dstheight and height <= dstwidth \ and not self.opt.webtoon and self.opt.splitter == 1: - self.payload.append(['R', self.source, self.image.rotate(90, Image.Resampling.BICUBIC, True), self.color, self.fill]) + self.payload.append(['R', self.source, self.image, self.color, self.fill]) elif (width > height) != (dstwidth > dstheight) and not self.opt.webtoon: if self.opt.splitter != 1: if width > height: @@ -186,7 +186,7 @@ def splitCheck(self): self.payload.append(['S1', self.source, pageone, self.color, self.fill]) self.payload.append(['S2', self.source, pagetwo, self.color, self.fill]) if self.opt.splitter > 0: - self.payload.append(['R', self.source, self.image.rotate(90, Image.Resampling.BICUBIC, True), + self.payload.append(['R', self.source, self.image, self.color, self.fill]) else: self.payload.append(['N', self.source, self.image, self.color, self.fill])