The image isn't corrupt, it just isn't an image, if you don't send a content-type header to a browser, your web server sends one for you, generally text/html or application/octet-stream, neither of which will lead to the image being interpreted as an image by a web browser.
#send image to browser print "Content-Type: text/png\n\n"; print $image->png;
| We're not surrounded, we're in a target-rich environment! |
|---|
In reply to Re: Using GD and imageTTF
by jasonk
in thread Using GD and imageTTF
by neilwatson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |