SecurityImage.php >> << resources/
This file holds all options that control the way the captcha image is generated.
Option | Type | Description |
---|---|---|
codeLengthMin | Integer |
Controls the minimum number of characters that a generated code can have. The length of the verification code will be randomly chosen between this value and codeLengthMax
|
codeLengthMix | Integer |
Controls the maximum number of characters that a generated code can have. The length of the verification code will be randomly chosen between this value and codeLengthMin
|
padding | Integer | Controls the amount of empty space between the rendered code and the image border. |
backgroundColor | Array[R, G, B] | Controls the background color of the image. |
textColor | Array[R, G, B] | Controls the color of the rendered code text. |
backgroundOverlayOffset | Integer |
The difference between the background color and the background overlay color. The background overlay is a small image that is rendered over the background color to create a small amount of noise. |
backgroundColorVariation | Integer | Controls the amount of random variation that is allowed to be applied to the background color. |
overlayColorVariation | Integer |
Controls the amount of random variation that is allowed to be applied to the background overlay color. The background overlay is a small image that is rendered over the background color to create a small amount of noise. |
characterWidth | Integer |
The image for each character is loaded from the script's font image (resources/font.gif ).
Each character is defined by a rectangle within this image and every character must occupy the same amount of space.
This property must match the width of the rectangle that a single character occupies within the image.
|
characterHeight | Integer |
The image for each character is loaded from the script's font image (resources/font.gif ).
Each character is defined by a rectangle within this image and every character must occupy the same amount of space.
This property must match the hieght of the rectangle that a single character occupies within the image.
|