Initatiates the creation of captcha image generation.
Optional
options: { height: number; width: number } = ...Options for constructor.
Height of captcha image.
Width of captcha image.
Non asynchronous method to generate captcha image.
Note: It do not use
setBackground
method value for background image. If you want to set background and also use generateSync method then use background option in genrateSync method.
Optional
option: { background?: Image } = {}Options to add extra values
Optional
background?: ImageAdd background image.
Set background for captcha image.
Buffer/url/path of image.
Change captcha text options
Captcha appearance options.
Change decoy options
Decoy characters customisation options
set dimension for your captcha image
Height of captcha image.
Width of captcha image.
Change trace creation options.
Trace Line appearance options.
Captcha generator class.