i figured it out. Here is an exmple of a working one on a blank page. Just one image and to the right of it it says "800x500"
<?php
list($width, $height, $type, $attr) = getimagesize("test.jpg");
echo "<img src=\"test.jpg\" />";
echo $width; echo 'x'; echo $height;
?>