问题
Is there a way to know the size (w,h) of an image loaded over http with the headers or metadata (before having downloaded all of it) ?
回答1:
no, this not possible, except you pass this information by yourself to the HTTP headers.
来源:https://stackoverflow.com/questions/5042941/size-width-height-of-an-image-loaded-over-http