I have a list of length 9 million which contains tuples representing RGB value. Example: A = [(255, 255, 255), (0, 0, 0) .......... , (0, 0, 0)]
I have to create an image in python (size: 3000*3000) where every tuple in the list represents one pixel. The image should contain some black and white pixels.
#However, using the code below I got an image with all pixels black.
img = Image.new('1', (3000,3000))
img.putdata(A)
img.show()
Why does not the image not reflect white pixels? Appreciate any help. Thank you!