1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

Improved color detection (#1003)

* Improved color detection

* use pure python

---------

Co-authored-by: Alex Xu <alexkurosakimh3@gmail.com>
This commit is contained in:
Adrian
2025-07-01 03:18:04 +03:00
committed by GitHub
parent e8d05c16aa
commit 1fa5a5b19b
2 changed files with 33 additions and 36 deletions

View File

@@ -647,7 +647,7 @@ def imgFileProcessing(work):
img.autocontrastImage()
img.resizeImage()
img.optimizeForDisplay(opt.reducerainbow)
if opt.forcecolor and workImg.color:
if opt.forcecolor and img.color:
pass
elif opt.forcepng:
img.quantizeImage()