in reply to Would GD draws in command line

is there any method to let GD draw in the command line mode?

Assuming you want to just save it to file? Yes!

Instead of printing to STDOUT, (like in a CGI program), you print to a file.

open(OUTPUT, ">$0.gif") or die "Can't open $0.gif: $!\n"; print OUTPUT $image->gif(); close(OUTPUT);

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^2: Would GD draws in command line
by Anonymous Monk on Nov 08, 2010 at 17:01 UTC