PHP image resizing with fixed height and width

This function will resize images via php gd library.