title: getimagesize very slow on remote image
body: <p>Good day,</p>
  
  <p>I have a question here. I am trying to fetch image from few external sites as i'm trying to develop link sharing website for my project.</p>
  
  <p>Right now i'm stuck at this part, </p>
  
  <pre><code>getimagesize
  </code></pre>
  
  <p>It took basically > 100 seconds to get width and height of remote images. Is there any alternative method to reduce the time?</p>
  
  <p>I tried sites like digg, facebook, image from external site appear very fast. How do they achieve it with any examples?</p>
  
  <p>Thank you for your help.</p>