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

Thanks so much,
I wish I was able to run a command line.
I agree strict and warnings should always be used.
The jpg did not save to disk. That was the first thing I checked for.
I really did not see any code in my post that should print the new or old jpg to screen.

Cal

Replies are listed 'Best First'.
Re: Re: Re: Understanding GD.pm
by strider corinth (Friar) on Oct 31, 2002 at 16:16 UTC
    Ouch. That's a tough case to be in.

    If the code you posted was the whole thing, may I suggest a few additions? If you add these lines to the end:
    close FILE; print "<img src = 'test.jpg'></body></html>\n\n";
    and this to the beginning, after the header:
    print "<html><head><title>Test page</title></html><body>\n";
    That will make your output an actual HTML page, and make your Perl just a tough more correct. I don't honestly think that's your problem, but it wouldn't hurt to make sure that it isn't.
    --

    Love justice; desire mercy.
      Thanks , You know I did not even notice there was no  close FILE;at the end of the script. Thanks for pointing that out.
      Well is what I get is a blank page but it is the test page. HTML produced:<html><head><title>Test page</title></head><body> I am trying some more print statements. I will update soon. Thanks again
      Thanks for your help,

      I ran some print statements and the buck stops here:

      my $srcimage = GD::Image->newFromJpeg('churchmiddle.jpg');

      I guess I am wondering now if the script is comunicating with the GD Module.
      Thanks for your help,

      I ran some print statements and the buck stops here:

      my $srcimage = GD::Image->newFromJpeg('churchmiddle.jpg');

      I guess I am wondering now if the script is comunicating with the GD Module.