mirror of
https://github.com/ciromattia/kcc
synced 2026-09-23 03:07:09 +00:00
Decreased ferocity of margin cropping
This commit is contained in:
+1
-1
@@ -318,7 +318,7 @@ class ComicPage:
|
|||||||
tmpImg = tmpImg.point(lambda x: x and 255)
|
tmpImg = tmpImg.point(lambda x: x and 255)
|
||||||
tmpImg = tmpImg.filter(ImageFilter.MinFilter(size=3))
|
tmpImg = tmpImg.filter(ImageFilter.MinFilter(size=3))
|
||||||
tmpImg = tmpImg.filter(ImageFilter.GaussianBlur(radius=5))
|
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
|
self.image = self.image.crop(tmpImg.getbbox()) if tmpImg.getbbox() else self.image
|
||||||
|
|
||||||
def cropMargin(self, power):
|
def cropMargin(self, power):
|
||||||
|
|||||||
Reference in New Issue
Block a user