From 13fedff77b7e290609cb98628be99d9343b6ea3b Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Thu, 26 Oct 2023 12:20:26 -0700 Subject: [PATCH] lower auto crop threshold (#598) --- kindlecomicconverter/image.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/kindlecomicconverter/image.py b/kindlecomicconverter/image.py index 9df8049..7345a12 100755 --- a/kindlecomicconverter/image.py +++ b/kindlecomicconverter/image.py @@ -24,12 +24,7 @@ import mozjpeg_lossless_optimization from PIL import Image, ImageOps, ImageStat, ImageChops, ImageFilter from .shared import md5Checksum -# 0.045 was determined by -# 1200 / 824 = 1.456 (Kindle DX resolution) -# 2250 / 1500 = 1.5 (Typical manga page resolution) -# 1.5 - 1.456 < 0.045 -# 0.045 / 1.5 = 0.03 (So maximum 3% of is cropped) -AUTO_CROP_THRESHOLD = 0.045 +AUTO_CROP_THRESHOLD = 0.015 class ProfileData: