Look like the function to crop the images the way I want is imagecopyresized()
Suppose, all my images upload all have a certain size, like 300 x 400 pixels for example. And for instance, I want the thumbnail to have the first half of the image. Should I call this function like this?:
imagecopyresized(dest, src, 0,0,0,0,300,200,srcW,srcH)