Owen wrote:
On Sat, 08 Jan 2005 14:36:57 -0600
"JupiterHost.Net" <[EMAIL PROTECTED]> wrote:


I've added it to my test script and did the othe types as well and removed the content type header so that doesn't confuse the issue.


#!/usr/bin/perl

use strict;
use warnings;
use GD;

my $image = GD::Image->new(100,50);
my $white = $image->colorAllocate(255,255,255);
$image->transparent($white);

my $fontcolor = $image->colorAllocate(0,0,0);
my $font = GD::Font->Small();

$image->string($font,2,10,'hello world',$fontcolor);


--------------------------insert---------------------------
open (OUT,">GD.png");
my $img = $image->png;
print OUT "$img";


$ cat GD.png
$

Very weird, still nothing :)

GD just isn't returning anything in any format, scalar or array context...

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to