mirror of
https://github.com/ciromattia/kcc
synced 2026-05-05 23:32:49 +00:00
fix humble bundle pdf png autocontrast (#1273)
This commit is contained in:
@@ -698,6 +698,9 @@ def imgFileProcessing(work):
|
|||||||
|
|
||||||
img.gammaCorrectImage()
|
img.gammaCorrectImage()
|
||||||
|
|
||||||
|
if not img.colorOutput:
|
||||||
|
img.convertToGrayscale()
|
||||||
|
|
||||||
img.autocontrastImage()
|
img.autocontrastImage()
|
||||||
img.resizeImage()
|
img.resizeImage()
|
||||||
img.optimizeForDisplay(opt.eraserainbow, img.colorOutput)
|
img.optimizeForDisplay(opt.eraserainbow, img.colorOutput)
|
||||||
@@ -705,7 +708,6 @@ def imgFileProcessing(work):
|
|||||||
if img.colorOutput:
|
if img.colorOutput:
|
||||||
pass
|
pass
|
||||||
elif opt.forcepng:
|
elif opt.forcepng:
|
||||||
img.convertToGrayscale()
|
|
||||||
if not opt.noquantize:
|
if not opt.noquantize:
|
||||||
img.quantizeImage()
|
img.quantizeImage()
|
||||||
if opt.format == 'PDF':
|
if opt.format == 'PDF':
|
||||||
@@ -714,8 +716,6 @@ def imgFileProcessing(work):
|
|||||||
img.convertToGrayscale()
|
img.convertToGrayscale()
|
||||||
elif opt.pnglegacy:
|
elif opt.pnglegacy:
|
||||||
img.convertToGrayscale()
|
img.convertToGrayscale()
|
||||||
else:
|
|
||||||
img.convertToGrayscale()
|
|
||||||
output.append(img.saveToDir())
|
output.append(img.saveToDir())
|
||||||
return output
|
return output
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
Reference in New Issue
Block a user