Answers for "python pillow"

12

pillow python

pip install Pillow
Posted by: Guest on May-10-2020
8

python pil

from PIL import Image

img = Image.open("./my_image.png")
Posted by: Guest on July-14-2020
6

python image library

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))
Posted by: Guest on April-23-2020
0

plot path in pillow python

from PIL import Image, ImageDraw

with Image.open("hopper.jpg") as im:

    draw = ImageDraw.Draw(im)
    draw.line((0, 0) + im.size, fill=128)
    draw.line((0, im.size[1], im.size[0], 0), fill=128)

    # write to stdout
    im.save(sys.stdout, "PNG")
Posted by: Guest on December-09-2020

Browse Popular Code Answers by Language