IN THIS CHAPTER
To introduce you to the concept of working with images in PHP, let's look at the general technique that is employed when scripting using the GD graphics library. This process can be generalized into the following steps:
Creation of an image “canvas” in memory by creating a new image or by loading an existing image.
Allocation of colors used in the image (if necessary).
Performing of any drawing or other image manipulations necessary on the canvas.
Saving the canvas to a file in a supported image format ...