mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Radius was hardcoded to 2.
This will probably, some time in the future get fixed upstream in PIL. Maybe.
This commit is contained in:
parent
6bd4c34317
commit
4e397a4d1c
|
@ -157,7 +157,7 @@ class GaussianBlur(Filter):
|
||||||
name = "GaussianBlur"
|
name = "GaussianBlur"
|
||||||
|
|
||||||
def __init__(self, radius=2):
|
def __init__(self, radius=2):
|
||||||
self.radius = 2
|
self.radius = radius
|
||||||
def filter(self, image):
|
def filter(self, image):
|
||||||
return image.gaussian_blur(self.radius)
|
return image.gaussian_blur(self.radius)
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@ class UnsharpMask(Filter):
|
||||||
name = "UnsharpMask"
|
name = "UnsharpMask"
|
||||||
|
|
||||||
def __init__(self, radius=2, percent=150, threshold=3):
|
def __init__(self, radius=2, percent=150, threshold=3):
|
||||||
self.radius = 2
|
self.radius = radius
|
||||||
self.percent = percent
|
self.percent = percent
|
||||||
self.threshold = threshold
|
self.threshold = threshold
|
||||||
def filter(self, image):
|
def filter(self, image):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user