Using Fly
[email protected] (Nik Gare) Wed, 01 Sep 1999 14:14:56 +0100
| Newsgroups | perl.riscos |
|---|---|
| Message-ID | <[email protected]> |
Hi, I've just sent a message to comp.sys.acorn.programmer, but I've just realised that it is much more relavent on this mailing list, so here it is > > Hi, > > Is it possible to use Perl to alter Gif files? <snip my stuff> > You need fly. The RISC OS version is available from > ftp://www.unimelb.edu.au/pub/www/tools/unix/fly/fly-1.6.0.RPC-SA.spark > You'll want one version for your server and another for test purposes > (probably), but to quote the help file: > which should cover most eventualities <snip> certainly does! I am having difficulty getting it working though, using the example script in the HTML doc in the archive, ie #!/usr/local/bin/perl -w $flyprog = "cgi-bin/fly"; <me: I have put the fly application in cgi-bin> $outfile = "temp.gif"; open(FLY,"| $flyprog -o $outfile "); print FLY "new\n"; print FLY "size 256,256\n"; print FLY "fill 1,1,255,255,255\n"; print FLY "circle 128,128,180,0,0,0\n"; print FLY "fill 128,128,255,255,0\n"; print FLY "arc 128,128,120,120,0,180,0,0,0\n"; print FLY "circle 96,96,10,0,0,0\n"; print FLY "circle 160,96,10,0,0,0\n"; print FLY "fill 96,96,0,0,0\n"; print FLY "fill 160,96,0,0,0\n"; close(FLY); When I try to fetch http://localhost/cgi-bin/flytest.cgi, Browse just displays a blank screen after about half a second, and I can't find temp.gif anywhere. Where exactly do I need to put the fly application? Is it for the server to use, ie inside the Netplex app somewhere, or is it for the Perl script to use, ie in cgi-bin, or is it something else (probably something so obviuos I haven't noticed it ;-> <end of stuff> I hope that's it's Ok to repost on this mailing list, because I hope that someone out there will be able to help me (unless I'm the only member so far!) TTFN Nik -- [email protected] http://www.cheddarcheese.de