Mar-30-2018, 03:23 PM
(This post was last modified: Mar-30-2018, 03:23 PM by louloudevinci.)
Hey ! I want to change all the pixels of an image with this loop but I have an error message : "'module' object has not attribute 'putpixel' and I don't know why...
from PIL import Image picture = Image.open("K:\profil\Bureau\CODES ISN\panda.jpg") (largeur, longueur) = picture.size print(largeur,"*",longueur) for y in range(largeur) : for x in range(longueur) : newpicture = Image.putpixel(picture, (x,y), (116, 208, 241)) newpicture.show