Answers for "python pil get pixel"

0

python pil get pixel

im = Image.open('image.gif')
rgb_im = im.convert('RGB')
r, g, b = rgb_im.getpixel((1, 1))

print(r, g, b)
>>> (65, 100, 137)
Posted by: Guest on March-01-2021

Python Answers by Framework

Browse Popular Code Answers by Language