What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-23 20:41:14
pillow python image putpixel
# Importing Image from PIL package from PIL import Image # creating a image object image = Image.open(r'C:\Users\System-Pc\Desktop\python.png') width, height = image.size for x in range(height): image.putpixel( (x, x), (0, 0, 0, 255) ) ... Add solution