From bd691989a9764a78433bfc620e12504baa9a1afc Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Sat, 2 May 2026 15:13:21 -0700 Subject: [PATCH] fix KFX on Windows 7 (#1323) --- kindlecomicconverter/comic2ebook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index 975a280..916c268 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -1719,7 +1719,7 @@ def makeBook(source, qtgui=None, job_progress=''): most_common_res, most_common_count = counter.most_common(1)[0] options.kfx_resolution = most_common_res - if most_common_count / counter.total() > .6: + if most_common_count / sum(counter.values()) > .6: pass #elif max(aspect_ratios) - min(aspect_ratios) < .2: else: