in reply to GD malformed header error
The Content-type prefix is needed so the browser knows what it's dealing with, and webservers get annoyed if a CGI script doesn't output them correctly :)
Adapted from the GD::Graph docs:
I think that will probably do it.use CGI qw(:standard); #... print header("image/png"); binmode STDOUT; print $im->png;
(Edit: Clarified what Content-type means)
|
|---|