Actually I don’t know that there is available any php function to crop and re-size a image with given parameters(x1,y1,x2,y2,width,height) and image name.
I am looking like below function which create new image with given parameters from existing one.
newimg(x1,y1,x2,y2,width,height,image);
Currently i have got all above parameters with javascript but now i want to crop image according to above parameters.
imagecopyresampled()can do just that:In your case (untested):