succeeds? In case of error, it returns undef. You can check that with the usual$source_img = GD::Image->newFromJpeg($opt{'i'});
.or die "Failed to load $opt{'i'}: $!
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
In reply to Re: Add text to image
by CountZero
in thread Add text to image
by xachen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |