title: How open a jpg in numpy?
body: <p>I want to load a jpg image from a url as a numpy array. But whenenver I do, I get an error.  Can someone tell me what I can do to make my code work?</p>
  
  <pre><code>import urllib2
  import matplotlib.pyplot as plt
  import numpy as np
  f=urllib2.urlopen("https://www.ibiblio.org/hyperwar/USA/USA-EF-Defeat/maps/USA-EF-Defeat-40.jpg")
  print(f.shape)
  plt.imshow(f)
  plt.show()
  </code></pre>
  
  <p>When I run this code, I get the error: </p>
  
  <pre><code>TypeError: Image data can not convert to float
  </code></pre>