title: Image.fromarray changes size
body: <p>I have data that I want to store into an image. I created an image with width 100 and height 28, my matrix has the same shape. When I use <code>Image.fromarray(matrix)</code> the shape changes:</p>
  
  <pre><code>from PIL import Image
  
  img = Image.new('L', (100, 28))
  tmp = Image.fromarray(matrix)
  print(matrix.shape) # (100, 28)
  print(tmp.size) # (28, 100)
  img.paste(tmp, (0, 0, 100, 28) # ValueError: images do not match
  </code></pre>
  
  <p>When I use <code>img.paste(tmp, (0, 0))</code> the object is pasted into the image, but the part starting with the x value 28 is missing.</p>
  
  <p>Why does the dimension change?</p>