For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > July 2005 > Error in using GD Image









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Error in using GD Image
karthik.duraisamy@gmail.com

2005-07-30, 4:59 pm

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::Polyline;
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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com