$arc_linethrough = true
[line 338]
For added security, it is a good idea to draw arced lines over the letters to make it harder for bots to segment the letters.
Two arced lines will be drawn over the text on each side of the image.
This is currently expirimental and may be off in certain configurations.
$arc_line_colors = "#8080ff"
[line 347]
The colors or color of the arced lines.
Use HTML hex notation with preceding # sign, and separate each value with a comma.
This should be similar to your font color for single color images.
$audio_path = './audio/'
[line 356]
Full path to the WAV files to use to make the audio files, include trailing /.
Name Files [A-Z0-9].wav
Tags:
$charset = 'ABCDEFGHKLMNPRSTUVWYZ23456789'
[line 114]
The character set for individual characters in the image.
Letters are converted to uppercase.
The font must support the letters or there may be problematic substitutions.
$code_length = 4
[line 105]
The length of the code to generate.
$draw_angled_lines = false
[line 320]
Set to true to draw angled lines on the image in addition to the horizontal and vertical lines.
Tags:
$draw_lines = true
[line 285]
Draw vertical and horizontal lines on the image.
Tags:
$draw_lines_over_text = false
[line 329]
Draw the lines over the text.
If fales lines will be drawn before putting the text on the image.
This can make the image hard for humans to read depending on the line thickness and distance.
$font_size = 24
[line 172]
The font size.
Depending on your version of GD, this should be specified as the pixel size (GD1) or point size (GD2)
$gd_font_file = 'gdfonts/bubblebath.gdf'
[line 146]
The GD font to use.
Internal gd fonts can be loaded by their number.
Alternatively, a file path can be given and the font will be loaded from file.
$gd_font_size = 20
[line 155]
The approximate size of the font in pixels.
This does not control the size of the font because that is determined by the GD font itself.
This is used to aid the calculations of positioning used by this class.
$image_bg_color = "#e3daed"
[line 227]
The background color for the image.
This should be specified in HTML hex format.
Make sure to include the preceding # sign!
$image_height = 45
[line 90]
The desired width of the CAPTCHA image.
$image_type = SI_IMAGE_PNG
[line 98]
The image format for output.
Valid options: SI_IMAGE_PNG, SI_IMAGE_JPG, SI_IMAGE_GIF
$image_width = 175
[line 83]
The desired width of the CAPTCHA image.
$line_color = "#80BFFF"
[line 294]
The color of the lines drawn on the image.
Use HTML hex format with preceding # sign.
Tags:
$line_distance = 5
[line 302]
How far apart to space the lines from eachother in pixels.
Tags:
$line_thickness = 1
[line 312]
How thick to draw the lines in pixels.
1-3 is ideal depending on distance
Tags:
$multi_text_color = "#0a68dd,#f65c47,#8d32fd"
[line 255]
String of HTML hex colors to use.
Separate each possible color with commas.
Be sure to precede each value with the # sign.
$text_angle_maximum = 20
[line 190]
The minimum angle in degrees, with 0 degrees being left-to-right reading text.
Higher values represent a counter-clockwise rotation.
For example, a value of 90 would result in bottom-to-top reading text.
$text_angle_minimum = -20
[line 181]
The minimum angle in degrees, with 0 degrees being left-to-right reading text.
Higher values represent a counter-clockwise rotation.
For example, a value of 90 would result in bottom-to-top reading text.
$text_color = "#ff0000"
[line 238]
The text color to use for drawing characters.
This value is ignored if $use_multi_text is set to true.
Make sure this contrasts well with the background color.
Specify the color in HTML hex format with preceding # sign
Tags:
$text_maximum_distance = 33
[line 218]
Letters can be spaced apart at random distances.
This is the maximum distance between two letters.
This should be at least as wide as a font character.
Small values can cause letters to be drawn over eachother.
$text_minimum_distance = 30
[line 208]
Letters can be spaced apart at random distances.
This is the minimum distance between two letters.
This should be at least as wide as a font character.
Small values can cause letters to be drawn over eachother.
$text_transparency_percentage = 15
[line 272]
The percentage of transparency, 0 to 100.
A value of 0 is completely opaque, 100 is completely transparent (invisble)
Tags:
$text_x_start = 8
[line 198]
The X-Position on the image where letter drawing will begin.
This value is in pixels from the left side of the image.
$ttf_file = "./elephant.ttf"
[line 164]
The path to the TTF font file to load.
$use_gd_font = false
[line 137]
Whether to use a GD font instead of a TTF font.
TTF offers more support and options, but use this if your PHP doesn't support TTF.
$use_multi_text = true
[line 246]
Set to true to use multiple colors for each character.
Tags:
$use_transparent_text = true
[line 263]
Set to true to make the characters appear transparent.
Tags:
$use_wordlist = true
[line 129]
True to use a word list file instead of a random code
$wordlist_file = 'words/words.txt'
[line 122]
Create codes using this word list
Tags: