Improve code readability (#984)

This commit is contained in:
Adrian authored and GitHub committed 2025-06-20 10:12:24 -07:00
1 parent e9f0310b94
commit 221f964f14
2 files changed
+8 -7

No files matched your search

+6 -2
View File
@@ -642,8 +642,12 @@ def imgFileProcessing(work):
img.autocontrastImage()
img.resizeImage()
img.optimizeForDisplay(opt.reducerainbow)
if not opt.forcecolor or (opt.forcecolor and not workImg.color):
img.convertToGrayscaleOrQuantize()
if opt.forcecolor and workImg.color:
pass
elif opt.forcepng:
img.quantizeImage()
else:
img.convertToGrayscale()
output.append(img.saveToDir())
return output
except Exception: