From f570c84a68e372da70de770f91d50deda882fe31 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 26 Dec 2013 08:39:06 +0530 Subject: [PATCH] Revert mistaken previous change to trim parameter Comic Input: Fix a regression to comic input in 1.15 that could cause some comics to be rendered as black or white pages. Fixes #1264133 [Comicbook to epub conversion fails : white and black pages everywhere.](https://bugs.launchpad.net/calibre/+bug/1264133) --- src/calibre/ebooks/comic/input.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/ebooks/comic/input.py b/src/calibre/ebooks/comic/input.py index 1321ea106c..06f93f5fb3 100755 --- a/src/calibre/ebooks/comic/input.py +++ b/src/calibre/ebooks/comic/input.py @@ -115,7 +115,8 @@ class PageProcessor(list): # {{{ wand.rotate(pw, -90) if not self.opts.disable_trim: - wand.trim(10) + wand.trim(25*65535/100) + wand.set_page(0, 0, 0, 0) # Clear page after trim, like a "+repage" # Do the Photoshop "Auto Levels" equivalent if not self.opts.dont_normalize: