mirror of
https://github.com/ciromattia/kcc
synced 2026-10-20 08:22:33 +00:00
Implemented Devernay idea
This commit is contained in:
+1
-1
@@ -329,13 +329,13 @@ def applyImgOptimization(img, isSplit, toRight, options, overrideQuality=5):
|
|||||||
img.cropWhiteSpace(10.0)
|
img.cropWhiteSpace(10.0)
|
||||||
if options.cutpagenumbers:
|
if options.cutpagenumbers:
|
||||||
img.cutPageNumber()
|
img.cutPageNumber()
|
||||||
|
img.optimizeImage(options.gamma)
|
||||||
if overrideQuality != 5:
|
if overrideQuality != 5:
|
||||||
img.resizeImage(options.upscale, options.stretch, options.black_borders, isSplit, toRight,
|
img.resizeImage(options.upscale, options.stretch, options.black_borders, isSplit, toRight,
|
||||||
options.landscapemode, overrideQuality)
|
options.landscapemode, overrideQuality)
|
||||||
else:
|
else:
|
||||||
img.resizeImage(options.upscale, options.stretch, options.black_borders, isSplit, toRight,
|
img.resizeImage(options.upscale, options.stretch, options.black_borders, isSplit, toRight,
|
||||||
options.landscapemode, options.quality)
|
options.landscapemode, options.quality)
|
||||||
img.optimizeImage(options.gamma)
|
|
||||||
if options.forcepng and not options.forcecolor:
|
if options.forcepng and not options.forcecolor:
|
||||||
img.quantizeImage()
|
img.quantizeImage()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user