Hey all,
I'm trying to use the following line of code to crop an image:
imagecopyresampled($dst_img,$src_img,0,0,0,0,$new_img_width,$new_img_height,$current_img_width,$current_img_height);
The problem is where I have the zeros. That is supposed to be the necessary x and y coordinates to perform the crop. I can't figure out how to get the proper x and y coordinates. I have also found very little information on this topic, everyone seems to take the easy way out and recommend ImageMagick. I don't have access to this program on the server I'm working on. Any advice is greatly appreciated.