I am trying to get image size (image dimensions, width and height) of hundreds of remote images and getimagesize
is way too slow.
I have done some reading and found out the quickest way would be to use file_get_contents
to read a certain amount of bytes from the images and examining the size within the binary data.
Anyone attempted this before? How would I examine different formats? Anyone has seen any library for this?
test...
Loading 32kb of data worked for me.