SPUG: GD file save
Charles DeRykus
charles.e.derykus at boeing.com
Tue Jan 4 17:18:06 CST 2000
> ...
> ####write to file -- from Linux module docs, does not work
> $gif_data = $im->gif;
> open (MYFILE,">testsave.gif") || die;
> binmode MYFILE;
> print MYFILE $gif_data;
> close DISPLAY;
> Neither of these "write" routines will create/save the image. I have
> chmod and owner/group names set correctly to allow file creation.
> Anyone know what I'm missing with Linux/GD?
What errors do you see with:
open (MYFILE,">testsave.gif") or die "open: $!\n";
...
close MYFILE or die "close: $!\n";
--
Charles DeRykus
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
SUBSCRIBE/UNSUBSCRIBE: Replace ACTION below by subscribe or unsubscribe
Email to majordomo at pm.org: ACTION spug-list your_address
More information about the spug-list
mailing list