mirror of
https://github.com/ciromattia/kcc
synced 2025-12-15 18:56:28 +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)
|
||||
filename = getImageFileName(imgfile)
|
||||
if filename is not None:
|
||||
if options.imgproc:
|
||||
if "Rotated" in theGreatIndex[imgfilepath]:
|
||||
rotatedPage = True
|
||||
else:
|
||||
@@ -67,6 +68,11 @@ def buildHTML(path, imgfile, imgfilepath):
|
||||
noVerticalPV = True
|
||||
else:
|
||||
noVerticalPV = False
|
||||
else:
|
||||
rotatedPage = False
|
||||
noPV = False
|
||||
noHorizontalPV = False
|
||||
noVerticalPV = False
|
||||
htmlpath = ''
|
||||
postfix = ''
|
||||
backref = 1
|
||||
@@ -163,6 +169,7 @@ def buildHTML(path, imgfile, imgfilepath):
|
||||
|
||||
|
||||
def checkMargins(path):
|
||||
if options.imgproc:
|
||||
for flag in theGreatIndex[path]:
|
||||
if "Margins-" in flag:
|
||||
flag = flag.split('-')
|
||||
|
||||
Reference in New Issue
Block a user