in reply to Re: Re: Re: Understanding GD.pm
in thread Understanding GD.pm

You know this is really getting me. The script still seems to stop printing right at that same line.
my $srcimage = GD::Image->newFromJpeg("churchmiddle.jpg") || print "GD +::Image->newFromJpeg('churchmiddle.jpg') failed: $!<br>\n";

Replies are listed 'Best First'.
Re:^5 Understanding GD.pm
by insensate (Hermit) on Oct 31, 2002 at 18:46 UTC
    I suspect that you're running into issues in GD.pm and dieing in the module. Before the above line put the following line to make sure the script sees your image file.
    unless(-e "churchmiddle.jpg"){ print "can't see the image"; }
    Unless churchmiddle.jpg is sitting in the directory with the script GD will die complaining about undefined values.
      Thanks so much, Well it was not seeing the image. Now it is, but no change in end results. Cal