Hi, using this seems to get rid of the garbled stuff: ./helloworld2 > output.png
Is output.png supposed to be an existing image or is it one that is created on the fly? The code refers to the book authors home directory: my ($x1, $y1, $x2, $y2, $x3, $y3, $x4, $y4) = $image->stringFT($black, "/home/shawn/arial.ttf", 48, 0, 40, 120, "Hello World"); Is this where the image is read from or created to? The book site doesn't give an image to work with. thanks for helping a lost man, Joel -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 12:22 PM To: Joel Lopez; [EMAIL PROTECTED] Subject: RE: trying out examples in Oreilly's Perl Graphics Programming ------------------------------------------------ On 16 Jul 2003 11:28:31 -0700, Joel Lopez <[EMAIL PROTECTED]> wrote: > Hi, > > I have been trying to get this perl script to work, but I'm can't seem > to figure out why it's not working. You can see it here: > > http://shawn.apocabilly.org/PGP/examples/example2-1.txt > > When I run it I get this on my screen: > > [EMAIL PROTECTED] imagemagick]# ./helloworld2 > Use of uninitialized value in subtraction (-) at ./helloworld2 line 31. > Use of uninitialized value in addition (+) at ./helloworld2 line 31. > Use of uninitialized value in addition (+) at ./helloworld2 line 31. > Use of uninitialized value in subtraction (-) at ./helloworld2 line 31. > PNG <snip image data> > > I first typed it in, but then after I couldn't get it to work I copied > and pasted it into a file. > > I'm using Red Hat 8 and have updated the libgd C library to version > 1.8.4 and then used cpan to install GD. > > I ran the demo for libgd and it made the graphic it was supposed to so I > think it's working ok. Is there anyway to find out if everything is > installed correctly? > What makes you think it didn't work correctly? The script just prints the image data to the screen, which is basically what that garbled mess was in your e-mail. Try opening a file to write the image to, then print it to the handle, then open the image in a image viewer.... As an option first try to capture the output of the script to a file and open that in the image viewer: ./helloworld2 > output.png The other messages are just warnings that we can help you get rid of later. http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]