title: In Python, how can an image stored as a NumPy array be scaled in size?
body: <p>I have created a NumPy array in the following way:</p>
  
  <pre><code>data = numpy.zeros((1, 15, 3), dtype = numpy.uint8)
  </code></pre>
  
  <p>I then filled this array with RGB pixel values, resulting in a little colour image that can be saved using a procedure such as the following:</p>
  
  <pre><code>image = Image.fromarray(data)
  image.save("image.png")
  </code></pre>
  
  <p>How could I scale up the size of the NumPy array (without interpolation) for the purposes of creating an image that is, say, 600 x 300 pixels?</p>