title: Super fast getimagesize in php
body: <p>I am trying to get image size (image dimensions, width and height) of hundreds of remote images and <a href="http://php.net/getimagesize" rel="noreferrer"><code>getimagesize</code></a> is way too slow.</p>
  
  <p>I have done some reading and found out the quickest way would be to use <a href="http://php.net/file_get_contents" rel="noreferrer"><code>file_get_contents</code></a> to read a certain amount of bytes from the images and examining the size within the binary data.</p>
  
  <p>Anyone attempted this before? How would I examine different formats? Anyone has seen any library for this?</p>