Fixed No optimization mode (close #88)
This commit is contained in:
1 parent
f32e9560b5
commit
2ee5dc310b
1 file changed
+7
@@ -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