title: clump array values into groups
body: <p>im trying to convert a png file into rgba values using this code</p>
  <pre><code>import sys
  import numpy as np
  
  # get infile as argument
  infile = sys.argv[1]
  
  # load png
  
  img=Image.open(infile)
  pixels = img.load()
  
  #build array
  
  pix_val_flat = [v for c in [[x,y] for x in range(img.size[0]) for y in range(img.size[1])] for v in pixels[c[0],c[1]]]
  
  print(pix_val_flat)
  </code></pre>
  <p>with this code im getting a array output like this:</p>
  <p><strong>255, 255, 255, 15, 211, 211, 211, 29, 128, 126, 119, 107</strong></p>
  <p>how could i modify this code to give me a array output with one entire pixel per array entry?</p>