1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-31 10:31:55 +00:00

Decreased ferocity of margin cropping

This commit is contained in:
Paweł Jastrzębski
2016-11-26 14:56:51 +01:00
parent bdb459cfab
commit 9ad161489f

View File

@@ -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):