fiesize() for getting the size of the html page.
then run the content through a html parser. get all the image tags. then run each src="" bit of the tag with:
$size = getimagesize('url/to/image');
and then $size[3] will give the size of the image.
regards,
Daarius...