GD is not the preferred library for image manipulaiton within PerlMonks forums or anywhere else.
There's more than one way to do it. Sometimes you might prefer GD to complete a task, other times you might prefer ImageMagick.
I am not sure that use CGI; is required when only using the GD library.
Your code contains the line print "Content-type: text/html\n\n"; which suggests you are writing a CGI script. This suggestion has nothing to do with GD: when writing a CGI script, use CGI.
The error checking was a good point. I added it with no change.I get a blank page.
As I mentioned earlier, read the Tutorials that seem relevant. Learn about other debugging techniques that might help you find the cause of this problem.
If you haven't done so already, read the GD documentation carefully to ensure your code uses it correctly.
|