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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user