I'm trying to get an image and crop it then resize it to a thumbnail using PHPThumb. I want to crop the left side, right side, top and bottom in similar percentages. For example, crop 30% from left and 30% from right side; crop 40% from top bottomwards and 40% from bottom upwards How can I go about it. All I see in the manual is passing the SX value which I suppose only crops it mathematically from the bottom left(where x=0). I need to be able to crop from both sides towards the centre of the image. I hope you get what I mean.
I am using PHPThumb and not something custom since it has good JPEG compression when resizing, therefore the images have the clarity of the originals.
IMPORTANT EDIT: I have been notified that such a feature is not available in PHPThumb, anybody know of any such thumbnaik generator with the above cropping functions?