from PIL import Image img = Image.open('pomme.jpg') for y in range(img.height): img.putpixel((250,y),(255,0,0)) img.show()