Posted by apaezp on 05/24/07 20:36
An option which will generate some overhead but which opens up
countless possibilites is to use PHP as an image pre-processor (using
GD library routines).
In this way, the src could always be the same. Something like
src='getImage.php?id=header'. The getImage.php script would know which
image to serve.
There are many advantages to this pre-processing: you can resize
images before sending, type on top of images using specific fonts,
make the image content dynamic, etc.
To avoid processing time, I usually save pre-generated images to a
cache folder to served them quickly later on.
[Back to original message]
|