K
kd
Hi all,
I am a new member of this group. I have a program that uses GD
for drawing objects on images.I have the image in the cgi-bin directory
itself.I would be happy if someone in the group could help me out with
this.Thanks in advance.
Here is the code I wrote :
#!/usr/bin/perl
use strict;
use GD;
use GD:olyline;
use Math::Trig;
use Math::Round;
use CGI;
my $map = newFromPng GD::Image('Overview.png');
print "Content-type: image/png\n\n";
binmode STDOUT;
print $map->png;
Error :
Can't call method "png" on an undefined value at ./check.cgi line 12.
-
Karthik
I am a new member of this group. I have a program that uses GD
for drawing objects on images.I have the image in the cgi-bin directory
itself.I would be happy if someone in the group could help me out with
this.Thanks in advance.
Here is the code I wrote :
#!/usr/bin/perl
use strict;
use GD;
use GD:olyline;
use Math::Trig;
use Math::Round;
use CGI;
my $map = newFromPng GD::Image('Overview.png');
print "Content-type: image/png\n\n";
binmode STDOUT;
print $map->png;
Error :
Can't call method "png" on an undefined value at ./check.cgi line 12.
-
Karthik