[Image-SIG] [image-sig] controlling brightness of the image

Stani spe.stani.be at gmail.com
Fri Jan 11 23:16:56 CET 2008


You have to save the image, so replace your last line with:
img2.save("xyz1.jpg",quality=100)

Stani

Varsha purohit schreef:
> Hello All,
>        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)
> ench1 = ench.filter(ImageFilter.SHARPEN)
> ench.save("xyz1.jpg" + ext, "JPEG", quality=100)
>
>
> It says Brightness doesnt have attributes save and filter ?
>
> Than how can i save the enhanced image... any ideas...
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Image-SIG maillist  -  Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig
>   




More information about the Image-SIG mailing list