make captcha bigger
This commit is contained in:
parent
aa6bbf4bd7
commit
5173bccb97
4 changed files with 12 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ $alphanum = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789abcdefghijklmnopqrstuvwxyz';
|
|||
$string = substr( str_shuffle( $alphanum ), 2, 5 );
|
||||
$_SESSION['captcha_code'] = $string;
|
||||
/* Create new empty image */
|
||||
$Imagick->newImage( 80, 25, $bg );
|
||||
$Imagick->newImage( 100, 25, $bg );
|
||||
|
||||
/* Write the text on the image */
|
||||
$Imagick->annotateImage( $ImagickDraw, 4, 20, 0, $string );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue