title: How do I open an image from the internet in PIL?
body: <p>I would like to find the dimensions of an image on the internet. I tried using</p>
  
  <pre><code>from PIL import Image
  import urllib2 as urllib
  fd = urllib.urlopen("http://a/b/c")
  im = Image.open(fd)
  im.size
  </code></pre>
  
  <p>as suggested in <a href="https://stackoverflow.com/a/6014074/159388">this answer</a>, but I get the error message </p>
  
  <pre><code>addinfourl instance has no attribute 'seek'
  </code></pre>
  
  <p>I checked and objects returned by <code>urllib2.urlopen(url)</code> do not seem to have a seek method according to <code>dir</code>.</p>
  
  <p>So, what do I have to do to be able to load an image from the Internet into PIL?</p>