From 41f87273ca53d92c9da8d8b89d12cd45b83446cc Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Sun, 30 Mar 2025 08:58:35 -0700 Subject: [PATCH] speed optimization: fix accidentally cropping pages twice (#889) * don't crop each page twice * Update comic2ebook.py --- kindlecomicconverter/comic2ebook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index 45f27a7..85bad15 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -613,7 +613,7 @@ def imgFileProcessing(work): img = image.ComicPage(opt, *i) if opt.cropping == 2 and not opt.webtoon: img.cropPageNumber(opt.croppingp, opt.croppingm) - if opt.cropping > 0 and not opt.webtoon: + if opt.cropping == 1 and not opt.webtoon: img.cropMargin(opt.croppingp, opt.croppingm) if opt.interpanelcrop > 0: img.cropInterPanelEmptySections("horizontal" if opt.interpanelcrop == 1 else "both")