Lucee Function Reference

imagecaptcha()

Creates a captcha image

Example

imagecaptcha(string text,numeric height,numeric width,[string difficulty,[any fonts,[numeric fontsize,[string fontcolor]]]]):any

Category

image

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Default Value Description
text string  Yes   Text in the captcha.  
height numeric  Yes   Height of the captcha.  
width numeric  Yes   Width of the captcha.  
difficulty string  No low Level of complexity of the CAPTCHA text. Specify one of the following levels of text distortion: low, medium, high  
fonts any  No arial One or more valid fonts to use for the CAPTCHA text, as an array or as string list (separate multiple fonts with commas).
Lucee supports only the system fonts that the JDK can recognize. For example, TTF fonts in the Windows directory are supported on Windows.  
fontsize numeric  No 24 font size of the text in the CAPTCHA image.  
fontcolor string  No black font color of the text in the CAPTCHA image.