diff --git a/kindlecomicconverter/image.py b/kindlecomicconverter/image.py index 11b5655..82b93de 100755 --- a/kindlecomicconverter/image.py +++ b/kindlecomicconverter/image.py @@ -608,12 +608,30 @@ class Cover: self.image = self.image.crop((w/6, 0, w/2 - w * 0.02, h)) else: self.image = self.image.crop((w/2 + w * 0.02, 0, 5/6 * w, h)) + elif w / h > 1.83: + self.smartcover = True + if self.options.righttoleft: + self.image = self.image.crop((w * .19, 0, w * .575, h)) + else: + self.image = self.image.crop((w * .425, 0, .81 * w, h)) + elif w / h > 1.7: + self.smartcover = True + if self.options.righttoleft: + self.image = self.image.crop((w * .2, 0, w * .583, h)) + else: + self.image = self.image.crop((w * .417, 0, .8 * w, h)) elif w / h > 1.34: self.smartcover = True if self.options.righttoleft: self.image = self.image.crop((0, 0, w/2 - w * 0.03, h)) else: self.image = self.image.crop((w/2 + w * 0.03, 0, w, h)) + elif w / h > 1.0: + self.smartcover = True + if self.options.righttoleft: + self.image = self.image.crop((w * .36, 0, w, h)) + else: + self.image = self.image.crop((w, 0, .64 * w, h)) def save_to_folder(self, target, tomeid, len_tomes=0): try: