1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

speed optimization: fix accidentally cropping pages twice (#889)

* don't crop each page twice

* Update comic2ebook.py
This commit is contained in:
Alex Xu
2025-03-30 08:58:35 -07:00
committed by GitHub
parent b959739b53
commit 41f87273ca

View File

@@ -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")