Image cropping on unix server

We need to be able to crop pictures that are too big - these will allways be of thumbnail images. At the moment on upload our shop creates a thumbnail - sometimes this looks wrong because of the aspect and leaves white space to the sides.

A user will click on a link that launches your editor.

Your editor then needs to take an image from our server and allow the user to crop it as follows:

1. Option one would be to take the image aspect ratio and redice it to the smallest size you can to fit in a window.

The user then decides if they crop top / bottom OR left right or a bit of both.

2. The user can see the whole image and zoom in or out - they then move a small frame arround the screen - when they choose capture it crops the image to that size.

THERE IS A CHANCE THAT I NEED A BIGGER BUDGET TELL ME IF YOU THINK SO!

We need copyright clearance although sections can be open source if need be under LGPL or BSD or MIT licences