in reply to reading file size of web images

I would try 'wget --spider link'. If i remember correctly it returns file size as well. Could be wrong so test it first :).