I need to be able to add a feature to a page that I'm creating. The page will allow the user to upload 5 images. The images then need to be resized to a specific height. The box that I'm fitting the images into is smaller than the images will be so I need to be able to center the picture in the box and crop off the left and right sides.

None of the manipulation needs to be saved as a new image file, it just needs to be able to display on the screen like this and the user will then print out the page.

Can anyone tell me how to do this please or point me in the right direction?