mirror of
https://github.com/ciromattia/kcc
synced 2026-10-19 16:02:33 +00:00
fix crash in smart cover crop for landscape covers (#1379)
This commit is contained in:
@@ -648,7 +648,7 @@ class Cover:
|
|||||||
if self.options.righttoleft:
|
if self.options.righttoleft:
|
||||||
self.image = self.image.crop((w * .36, 0, w, h))
|
self.image = self.image.crop((w * .36, 0, w, h))
|
||||||
else:
|
else:
|
||||||
self.image = self.image.crop((w, 0, .64 * w, h))
|
self.image = self.image.crop((0, 0, .64 * w, h))
|
||||||
|
|
||||||
def save_to_folder(self, target, tomeid, len_tomes=0):
|
def save_to_folder(self, target, tomeid, len_tomes=0):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user