Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dynamic <IMG>



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).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org