Skip to content

Commit

Permalink
lower auto crop threshold (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
axu2 authored Oct 26, 2023
1 parent 61b1207 commit 13fedff
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions kindlecomicconverter/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@
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:
Expand Down

0 comments on commit 13fedff

Please sign in to comment.