How do I get the x size and y size of an image?
Try reading up on the getimagesize() -function.
Here: http://www.php.net/getimagesize
returns an array/vector of values for imagetype, imagewidth, imageheight + output in html.
just another one of the really cool functions in PHP !