Name
gd( ) — return the image in GD format
Synopsis
GD::Image::gd
This method returns the image in the GD uncompressed storage format. It can be used for writing to a file in the same way as the gif( ) method:
open OUTFILE, ">neatniks.gd"; # Open the file for writing binmode OUTFILE; # Make sure we're in binary mode print OUTFILE $image->gd; # Print GD data to the file close OUTFILE;
Get Programming Web Graphics with Perl and GNU Softwar now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.