mirror of
https://github.com/ciromattia/kcc
synced 2026-09-01 16:37:06 +00:00
Small tweaks
This commit is contained in:
+3
-2
@@ -40,6 +40,7 @@ import pdfjpgextract
|
|||||||
def buildHTML(path, imgfile):
|
def buildHTML(path, imgfile):
|
||||||
filename = getImageFileName(imgfile)
|
filename = getImageFileName(imgfile)
|
||||||
if filename is not None:
|
if filename is not None:
|
||||||
|
# All files marked with this sufix need horizontal Panel View.
|
||||||
if "_rotated" in str(filename):
|
if "_rotated" in str(filename):
|
||||||
rotate = True
|
rotate = True
|
||||||
else:
|
else:
|
||||||
@@ -369,10 +370,10 @@ def dirImgProcess(path):
|
|||||||
facing = "left"
|
facing = "left"
|
||||||
img0 = image.ComicPage(split[0], options.profile)
|
img0 = image.ComicPage(split[0], options.profile)
|
||||||
applyImgOptimization(img0, True, toRight1)
|
applyImgOptimization(img0, True, toRight1)
|
||||||
img0.saveToDir(dirpath, options.forcepng, options.forcecolor, split)
|
img0.saveToDir(dirpath, options.forcepng, options.forcecolor, None)
|
||||||
img1 = image.ComicPage(split[1], options.profile)
|
img1 = image.ComicPage(split[1], options.profile)
|
||||||
applyImgOptimization(img1, True, toRight2)
|
applyImgOptimization(img1, True, toRight2)
|
||||||
img1.saveToDir(dirpath, options.forcepng, options.forcecolor, split)
|
img1.saveToDir(dirpath, options.forcepng, options.forcecolor, None)
|
||||||
else:
|
else:
|
||||||
if facing == "right":
|
if facing == "right":
|
||||||
facing = "left"
|
facing = "left"
|
||||||
|
|||||||
Reference in New Issue
Block a user