Re: [Image-SIG] roop found an interesting flaw in PIL's ImageEnhance.py

2009-06-16 Thread Fredrik Lundh
On Mon, Jun 15, 2009 at 11:06 PM, Scott David Daniels wrote: > roop wrote: >> I was browsing ImageEnhace.py, and found something that I thought was >> odd in class Contrast: >> >> class Contrast(_Enhance): >>     "Adjust image contrast" >>     def __init__(self, image): >>         self.image = imag

[Image-SIG] roop found an interesting flaw in PIL's ImageEnhance.py

2009-06-15 Thread Scott David Daniels
roop wrote: > I was browsing ImageEnhace.py, and found something that I thought was > odd in class Contrast: > > class Contrast(_Enhance): > "Adjust image contrast" > def __init__(self, image): > self.image = image > mean = reduce(lambda a,b: a+b, image.convert("L").histogr