After experimenting with GD for PHP I have managed to successfully resize any image I wish and even make rudimentary thumbnails. However, I cant seem to figure out how to crop images! I have searched these forums and google for the past week and still cant find any articles, tutorials or example code on how to crop an image.
from the manual:
int imagecopyresampled ( resource dst_im, resource src_im, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH)
Now, from my understanding, srcX and srcY should be the key here but changing the values in those areas have no effect on my image whatsoever! Why is this?