image as cgi output
[1/2] from: arolls:bigpond:au at: 5-Dec-2000 19:59
Hi everyone,
It has come time for me to try to write an image to stdout in a cgi.
I was thinking to do it this way:
img: make image! 4x4
save/png %afile.png img
read/binary %afile.png
-- thats the end of the script, so the result of the read should be
put to stdout, right? I will try.
Is there a better way?
Anton.
[2/2] from: allenk::powerup::com::au at: 5-Dec-2000 22:42
Hi Anton,
Here's one I wrote quite a while ago for producing 1x1 gif of any specified
color. (which can be used as spacers or stretched for graph fillers)
http://www.rebol.org/web/spacer.html
Image Server http://www.rebol.org/web/spacer.r
It also shows how to send binary via cgi. Also includes test page in the
comments
Also on http://www.rebol.org/fl-list.htmlyou will find as link for Jeff's
Bitmap handling routines
Cheers,
Allen K