I have an saved images I output with this... <img src="includes/viewphoto.php?id=<?=$photo?>"> I want to use getimagesize() to get the height and width of the image and if it is above a certain size then scale/ reduce it. The problems are (i) using getimage() without a url just my viewphoto.php script (ii) comparing and reducing the file Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php