in reply to Re^2: GD::Image trueColor() hangup...
in thread GD::Image trueColor() hangup...

Either remove the line and make sure you use truecolor initializers (seems you do already) or just remove the check - that call always succeeds.

The "premature end of script headers" is because you're not sending any response from the script if you don't encounter an error - all the output is to some files. So just print a response (i.e. some headers and content) to STDOUT.

update: you'll also want to read Far More Than Everything You've Ever Wanted to Know about Prototypes in Perl, or just forget about them and don't use them. Your current use of prototypes is only going to bite you at some point.

Replies are listed 'Best First'.
Re^4: GD::Image trueColor() hangup...
by kalchas (Acolyte) on Mar 27, 2008 at 01:15 UTC
    Thanks for the tips... I've gotten rid of the prototypes for now. I'm still having trouble, though, and think there might be something pretty fundamental going on. The upload happens fine... I look in the folder and it's there. However, when I go to look for the resized Image, it's gone :(. I'm not quite sure where to go from here... Cheers, K.
      Hi Joost, I'm starting to feel like the problem has to do with:
      $source = "$uploadDirectory/$filename";
      Is there an issue with this being treated as a string vs. this winding up as a reference to the file in GD::Image->newFromJpeg($source, 1)? Any thoughts would be awesome! Cheers, K.