Python Instal PIL
# The new version of PIL is called Pillow, use that instead:
pip install pillow
SkelliBoi
# The new version of PIL is called Pillow, use that instead:
pip install pillow
from PIL import image
img = image.open('C:\Users\you\path\to\your\image.jpg')
pix = img.getpixel((100,100))
img.putpixel((0,0),(0,0,255))
from PIL import Image
img = Image.open("./my_image.png")
import math #importing the math functions
pi = math.pi #getting the value of pi
print(pi) #printing the result
from pil import Image
def newImg():
img = Image.new('RGB', (100, 100))
img.putpixel((30, 60), (155, 155, 55))
img.save(r'C:\Users\lenovo\Desktop\sqr.png')
return img
newImg()