Permalink
Browse files

Radius was hardcoded to 2.

This will probably, some time in the future get fixed upstream in PIL. Maybe.
  • Loading branch information...
1 parent 6bd4c34 commit 4e397a4d1ca0e419193ddeeae963275c05c7dfc9 Manuel Ebert committed Dec 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 PIL/ImageFilter.py
View
@@ -157,7 +157,7 @@ class GaussianBlur(Filter):
name = "GaussianBlur"
def __init__(self, radius=2):
- self.radius = 2
+ self.radius = radius
def filter(self, image):
return image.gaussian_blur(self.radius)
@@ -168,7 +168,7 @@ class UnsharpMask(Filter):
name = "UnsharpMask"
def __init__(self, radius=2, percent=150, threshold=3):
- self.radius = 2
+ self.radius = radius
self.percent = percent
self.threshold = threshold
def filter(self, image):

0 comments on commit 4e397a4

Please sign in to comment.