Generating Graphs on the Fly
Stretching Single-Pixel Images
This chapter explores generating graphics using the GD extension functions described in Chapter 12. "Image Functions." It is important to be aware of the issues involved with the creation of graphics on the fly. The first is that it is relatively costly in terms of CPU time. In most cases the flexibility of dynamic graphics is not worth what you pay in the load imposed on the server. Another issue is that making nice-looking graphics from PHP functions is not easy. Common techniques like drop shadows are next to impossible. As you will see in the examples that follow, a lot of work goes into creating ...