Possible Duplicate:
Super fast getimagesize in php
I want to get the image sizes of all the images within webpages (hence all img tags)
The problem is PHP's getimagesize()
function is so inefficient.
I tried running this...
for($i=0;$i<55;$i++){
getimagesize('http://www.blackcommentator.com/265/265_images/265_cartoon_do_something_now_bill_large.jpg');
}
..and it took a very long time to complete.
I'm wondering if anybody knows of a more efficient alternative to getimagesize()
in order to obtain the sizes of images in a webpage using PHP when it is typical to get the sizes of 20-30 images.