Retrieve calculated resized dimensions for use in imagecopyresampled().Calculate dimensions and coordinates for a resized image that fits within a specified width and height. If $crop is true, the largest matching central portion of the image will be cropped out and resized to the required size.
2001
Continue reading
February 12, 2011 

