in reply to using GD inside CGI...
and...# in the HTML generating code: # set up headers and other html... print "<img src='/cgi-bin/my-image.cgi?some=params'>";
# in the /cgi-bin/my-image.cgi script: # set up the GD::Image in $image print $cgi->header("image/png"); # set the correct content-type binmode STDOUT; print $image->png; # end
|
|---|