imagecaptcha 1.0.2 copy "imagecaptcha: ^1.0.2" to clipboard
imagecaptcha: ^1.0.2 copied to clipboard

Image captcha generator written in Dart.

dart-image-captcha (pub: imagecaptcha) #

A simple image captcha generator for Dart. Originally ported from the npm captchapng module: https://github.com/GeorgeChan/captchapng

Features #

  • Generates a numeric captcha image
  • Built-in fonts
  • Characters up and down, left and right limits, random displacement
  • No dependency on any service

Example #

  ImageCaptcha captcha = new ImageCaptcha(80, 30);

  double rand = new Random().nextDouble();

  img.Image image = captcha.render( (rand*9000+1000).round() );

  new File("test2.png").writeAsBytes( img.encodePng(image) );
2
likes
100
pub points
34%
popularity

Publisher

verified publishershopwindow.io

Image captcha generator written in Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (LICENSE)

Dependencies

image

More

Packages that depend on imagecaptcha