in reply to Using an image as a header with GD::Graph
# Open a file for writing open(PICTURE, ">/tmp/picture.png") or die("Cannot open file for writin +g"); # Make sure we are writing to a binary stream #binmode PICTURE; # Convert the image to PNG and print it to the file PICTURE #print PICTURE $im->png; print $im->png; close PICTURE;
|
|---|