title: Opening Images as Arrays
body: <p>I have a script that should open an image as a 2D array but I can't seem to make it work. I have tried using the numpy an PIL libraries. I tried this on different computers. The issue is that it opens the image as a 2D array on one computer but opens them ups as objects on a different compute running the same version of python.</p>
  
  <p>The code that should open the image and store it as an array can be seen below:</p>
  
  <pre><code>img = np.array(Image.open(imagePath))
  </code></pre>
  
  <p>On one computer I get an array but on another one I get an image object like this:</p>
  
  <pre><code>array(&lt;PIL.TiffImagePlugin.TiffImageFile image mode=I;16B size=320x240 at 0x2289FA8&gt;, dtype=object)
  </code></pre>