I'm using GD to dynamically draw a rectangle on an image I have of a map. I've got that part working fine.
Here's my question:
I know I need to set the headers of the page to
content-type: image/png , otherwise I get a bunch of characters instead of the picture.
But what if I want to place this dynamically created image inside a PHP or HTML document so that I can place text and other data around it? Is there any way to do this, or does the GD-generated image have to stay on its own page?