Answers for "new pil image"

2

pil resize image

im = Image.open('image.jpg')  
im = im.resize((w, h))
Posted by: Guest on October-17-2020
0

convert rgb image to binary in pillow

from PIL import Image

col = Image.open("cat-tied-icon.png")
gray = col.convert('1')
bw.save("result_bw.png")
Posted by: Guest on June-18-2020

Python Answers by Framework

Browse Popular Code Answers by Language