Dynamic <IMG>
Ron Peterson
rpeterson at wallacefloyd.com
Wed Aug 16 19:50:26 EDT 2000
David Lapointe wrote:
>
> I've done graphics on the fly using PHP. They have a good example
> too. Also GD ( http://stein.cshl.org/WWW/software/GD/) for a perl or C based solution has some > examples of dynamically generating images.
I just so happen to be using the GD C Library. I hadn't thought to
check their website for info on this.
> > Does /cgi-bin/tile need to output something differently than if it were
> > simply dumping a PNG to a file?
>
> Yes, you need to send out the header information (header,blankline) then the image.
>
> print ("Content-type: image/png\n\n");
> ...{send image}
I'd better confirm that this was indeed the problem before my inbox
explodes. :-) I was under the mistaken impression that you only did
this when you wanted to send an image to a browser naked and alone.
So things work now, but not really. Now I have to figure out why even
dynamically generated images get cached by the browser, and what do I do
about it. Bleh.
--
New England's first colonists decided to drop anchor at Plymouth Rock
instead of continuing on to Virginia because, as one of them put it, "We
could not now take time for further consideration, our victuals being
spent and especially our beer."
--
Ron Peterson
Systems Manager
Wallace Floyd Design Group
273 Summer Street
Boston, MA 02210
617.350.7400 tel
617.350.0051 fax
rpeterson at wallacefloyd.com
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
More information about the Discuss
mailing list