Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
 
PREVIOUS NEXT
Tagged: #python #pil #pixel
ADD COMMENT
Topic
Name
8+7 =