Improved color detection (#1003)

* Improved color detection

* use pure python

---------

Co-authored-by: Alex Xu <alexkurosakimh3@gmail.com>
This commit is contained in:
AdrianandAlex Xu authored and GitHub committed 2025-06-30 17:18:04 -07:00
1 parent e8d05c16aa
commit 1fa5a5b19b
2 files changed
+33 -36

No files matched your search

+1 -1
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()