Images uploaded to a web site might not always be usable as is. Images that come directly from a smart phone or high-resolution digital camera might have resolution/size that is too high to use on a web site. If the image is to be used as a profile image or thumbnail it might be a good idea to scale it down or crop a section out in order to get rid of irrelevant areas of the image. Scaling and cropping can be done with CSS, but that still requires the full image to be downloaded to the client and that would be a waste of bandwidth.
Using the GD extension in PHP makes it possible to perform ...