get remote image dimensions before accepting it as an upload? getimagesize() too slow
<p>I've been using getimagesize() to get the dimensions of an image a user is uploading, then checking if there is enough memory to process this image. The problem is getimagesize() downloads the file to the server before reading dimensions. So its catch 22. this must be a very common problem but i havent come across a universal solution. Is there a solid way to get a remote images dimensions without downloading it?</p>
