title: PIL Cannot Handle This Data Type
body: <p>I'm attempting to use the fft module in numpy:</p>
  
  <pre><code>import Image, numpy
  
  i = Image.open('img.png')
  a = numpy.asarray(i, numpy.uint8)
  
  b = abs(numpy.fft.rfft2(a))
  b = numpy.uint8(b)
  
  j = Image.fromarray(b)
  j.save('img2.png')
  </code></pre>
  
  <p>However, when I try and convert the numpy array back to a PIL image, I get the error:</p>
  
  <pre><code>TypeError: Cannot handle this data type
  </code></pre>
  
  <p>However, both a and b arrays appear to have the same data type (uint8), and doing <code>Image.fromarray(a)</code> runs fine. I do notice the shapes are slightly different (a.shape = (1840, 3264, 3) vs b.shape = (1840, 3264, 2)).</p>
  
  <p>I do fix this and find out which data types PIL accepts?</p>