mirror of
https://github.com/ciromattia/kcc
synced 2025-12-17 11:41:47 +00:00
Fixed No optimization mode (close #88)
This commit is contained in:
@@ -51,6 +51,7 @@ def buildHTML(path, imgfile, imgfilepath):
|
|||||||
imgfilepath = md5Checksum(imgfilepath)
|
imgfilepath = md5Checksum(imgfilepath)
|
||||||
filename = getImageFileName(imgfile)
|
filename = getImageFileName(imgfile)
|
||||||
if filename is not None:
|
if filename is not None:
|
||||||
|
if options.imgproc:
|
||||||
if "Rotated" in theGreatIndex[imgfilepath]:
|
if "Rotated" in theGreatIndex[imgfilepath]:
|
||||||
rotatedPage = True
|
rotatedPage = True
|
||||||
else:
|
else:
|
||||||
@@ -67,6 +68,11 @@ def buildHTML(path, imgfile, imgfilepath):
|
|||||||
noVerticalPV = True
|
noVerticalPV = True
|
||||||
else:
|
else:
|
||||||
noVerticalPV = False
|
noVerticalPV = False
|
||||||
|
else:
|
||||||
|
rotatedPage = False
|
||||||
|
noPV = False
|
||||||
|
noHorizontalPV = False
|
||||||
|
noVerticalPV = False
|
||||||
htmlpath = ''
|
htmlpath = ''
|
||||||
postfix = ''
|
postfix = ''
|
||||||
backref = 1
|
backref = 1
|
||||||
@@ -163,6 +169,7 @@ def buildHTML(path, imgfile, imgfilepath):
|
|||||||
|
|
||||||
|
|
||||||
def checkMargins(path):
|
def checkMargins(path):
|
||||||
|
if options.imgproc:
|
||||||
for flag in theGreatIndex[path]:
|
for flag in theGreatIndex[path]:
|
||||||
if "Margins-" in flag:
|
if "Margins-" in flag:
|
||||||
flag = flag.split('-')
|
flag = flag.split('-')
|
||||||
|
|||||||
Reference in New Issue
Block a user