You don't guard ->new against potential failures (e.g. wrong pathes).
And try to print the header as early as possible (it's always 'Content-Type: image/png', it seems) to facilitate debugging.
In reply to Re: Using GD in a CGI script to randomly select images fails...
by moritz
in thread Using GD in a CGI script to randomly select images fails...
by blue_cowdawg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |