mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/vdung/calibre
This commit is contained in:
commit
0a90e37ad7
@ -101,10 +101,9 @@ class PageProcessor(list): # {{{
|
||||
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…
x
Reference in New Issue
Block a user