[Image-SIG] [image-sig] controlling brightness of the image
Fredrik Lundh
fredrik at pythonware.com
Sat Jan 12 09:29:28 CET 2008
Varsha purohit wrote:
> I have written a program using ImageEnhance module of pil where i
> am controlling brightness and contrast of the image but i am unable to
> use im.save method to save the file. My code is here :
>
> import Image
> import ImageFilter
> import ImageEnhance
>
> file2 = "xyz.jpg"
> img2 = Image.open(file2)
> ench = ImageEnhance.Brightness(img2)
this creates an enhancement object that can be used to create enhanced
images. you need to call the "enhance" method to actually get an image
object. see the documentation for details:
http://www.pythonware.com/library/pil/handbook/imageenhance.htm
</F>
More information about the Image-SIG
mailing list