[Image-SIG] Bug: ImageFilter.py GaussianBlur radius not set

Even eventh at gmail.com
Thu Oct 7 20:08:35 CEST 2010


The constructor for GaussianBlur class accepts the argument radius, with
default value 2,
but it does nothing with this argument, and instead hardcodes the radius to
2.

Below is the code found in PIL 1.1.7:
class GaussianBlur(Filter):
    name = "GaussianBlur"
    def __init__(self, radius=2):
        self.radius = 2
    def filter(self, image):
        return image.gaussian_blur(self.radius)


I believe it should be "self.radius = radius" instead.

-- 
Even
eventh at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20101007/064deb8a/attachment.html>


More information about the Image-SIG mailing list