from PIL import Image im = Image.new( 'RGB', (1, 1) ) print( im.putpixel( ( 1, 1 ), (10,20,30) ) ) print( im.getpixel( ( 1, 1 ) ) )