Skip to content

Commit

Permalink
no rotate
Browse files Browse the repository at this point in the history
  • Loading branch information
axu2 committed Dec 13, 2024
1 parent f5a5624 commit b6f1fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kindlecomicconverter/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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])
Expand Down

0 comments on commit b6f1fe8

Please sign in to comment.