title: Load TIFF image as numpy array
body: <p>I have a series of tiff images to load in Python. </p>
  
  <p>First I use:</p>
  
  <pre><code>im=Image.open(*)
  </code></pre>
  
  <p>It loads and displays properly.</p>
  
  <pre><code>&gt;&gt;&gt; im
  PIL.TiffImagePlugin.TiffImageFile image mode=I;16 size=1408x1044 at 0x116154050
  &gt;&gt;&gt; type(im)
  instance
  &gt;&gt;&gt; im.size
  (1408, 1044)
  </code></pre>
  
  <p>Then I use:</p>
  
  <pre><code>imarray=numpy.array(im)
  </code></pre>
  
  <p>where </p>
  
  <pre><code>&gt;&gt;&gt; imarray.shape
  ()
  &gt;&gt;&gt; imarray.size
  1
  &gt;&gt;&gt; type(imarray)
  numpy.ndarray
  &gt;&gt;&gt;  imarray
  array(PIL.TiffImagePlugin.TiffImageFile image mode=I;16 size=1408x1044 at 0x116154050, dtype=object)
  </code></pre>
  
  <p>I have read <a href="https://stackoverflow.com/questions/12078940/converting-an-image-instance-file-to-an-array-python">this previous post</a> and followed the instructions there, but I can't get <code>imarray.shape</code> and <code>im.size</code> to match.</p>