title: Creating an Image in Python from a list of pixel values.(Pillow)
body: <p>I am working with the PIL library. I need to change the intensity of each colour channel in an image. ( I.E cut the whole B values in half) To do that i have iterated over every pixel and saved their values in a list. </p>
  
  <pre><code>list_1=[]
  for u in range(contact_sheet.height):
      for i in range(contact_sheet.width):
          ppx=Image.Image.getpixel(contact_sheet,(i,u))
          list_1.append(ppx)
  </code></pre>
  
  <p>I have ended up with a single list of tuples with over 1 million pixel values in it. I am planning to iterate over it (edit: as the values are in tuples i couldn't change them) and change the colour values with a loop. My question is, how can i re-convert it into an image? Also I have thought of using numpy array but I'm not so sure about it. Any help would be great. </p>