in reply to Generating graphics from database

GD would work for overlaying, there is also Imlib2, which is more powerful, but poorly documented.

Of course... if you are creating web pages your best bet would probably be doing it all on the web page with CSS and DHTML, unless you are doing really funky things.

                - Ant
                - Some of my best work - (1 2 3)