mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 17:24:20 +02:00
Fix splitting landscape pages
This commit is contained in:
parent
fa85e21967
commit
77d2aeb823
1 changed files with 2 additions and 3 deletions
|
|
@ -101,10 +101,9 @@ def render(self):
|
|||
if self.opts.landscape:
|
||||
self.rotate = True
|
||||
else:
|
||||
split1, split2 = img.clone, img.clone
|
||||
half = int(width/2)
|
||||
split1 = crop_image(img, 0, 0, half - 1, height)
|
||||
split2 = crop_image(img, half, 0, half-1, height)
|
||||
split1 = crop_image(img, 0, 0, half, height)
|
||||
split2 = crop_image(img, half, 0, width - half, height)
|
||||
self.pages = [split2, split1] if self.opts.right2left else [split1, split2]
|
||||
self.process_pages()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue