in reply to How can I use a CGI script to return an image?

You people make everything so damn hard. I think hes basically looking for...

#!/usr/bin/perl use CGI img; print img{src =>"blah.gif", #or whatever the path is... height=>"400", #or whatever the height is.. width=>"200", #or whatever the width is... border=>"0", #or whatever you want your border to be... };
And if you want that neat litte page.pl?image2 thing going then go with what xjar said, that seems to be the best.

Replies are listed 'Best First'.
RE: Answer: How can I use a CGI script to return an image?
by Fastolfe (Vicar) on Nov 10, 2000 at 19:24 UTC
    I disagree. Re-read his question. He's wanting to put a CGI script as the <img src="...">. Thus, his CGI script needs to output a valid binary image instead of the usual text/html.