Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Re: Understanding GD.pm

by strider corinth (Friar)
on Oct 31, 2002 at 17:22 UTC ( [id://209448]=note: print w/replies, xml ) Need Help??


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

You said before that the script seemed to be stopping after you tried to make the new image from the old jpeg, which lines up with what you're seeing now. I'd suggest switching back to HTML output and changing the line to this:
my $srcimage = GD::Image->newFromJpeg("churchmiddle.jpg") || print "GD +::Image->newFromJpeg('churchmiddle.jpg') failed: $!<br>\n";
That should tell you a little more about what's going on.
--

Love justice; desire mercy.

Replies are listed 'Best First'.
Re: Re: Re: Re: Understanding GD.pm
by cal (Beadle) on Oct 31, 2002 at 17:51 UTC
    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";
      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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://209448]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-19 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found