about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaweł Jastrzębski <[email protected]>2016-11-26 14:56:51 +0100
committerPaweł Jastrzębski <[email protected]>2016-11-26 14:56:51 +0100
commit9ad161489fea2283f8de6fc9f39efd15ba68da65 (patch)
treefde227a9cff3d3c303bb66d6ce59c44645c7a9ee
parentCode cleanup (diff)
downloadkcc-9ad161489fea2283f8de6fc9f39efd15ba68da65.tar.gz
kcc-9ad161489fea2283f8de6fc9f39efd15ba68da65.tar.bz2
kcc-9ad161489fea2283f8de6fc9f39efd15ba68da65.zip
Decreased ferocity of margin cropping
-rwxr-xr-xkcc/image.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kcc/image.py b/kcc/image.py
index 009b2bb..682ae45 100755
--- a/kcc/image.py
+++ b/kcc/image.py
@@ -318,7 +318,7 @@ class ComicPage:
         tmpImg = tmpImg.point(lambda x: x and 255)
         tmpImg = tmpImg.filter(ImageFilter.MinFilter(size=3))
         tmpImg = tmpImg.filter(ImageFilter.GaussianBlur(radius=5))
-        tmpImg = tmpImg.point(lambda x: (x >= 48 * power) and x)
+        tmpImg = tmpImg.point(lambda x: (x >= 16 * power) and x)
         self.image = self.image.crop(tmpImg.getbbox()) if tmpImg.getbbox() else self.image
 
     def cropMargin(self, power):