Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

icode/captcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Dart 验证码实现

##环境安装

###Ubuntu 安装所需库:

sudo apt-get install -y graphicsmagick imagemagick

###windows 下载对应版本:

ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/windows/
  • windows下jpeg格式会有一个无效参数的提示,不知原因

###Mac OS X

brew install GraphicsMagick imagemagick
sudo ln -s `which gm` /usr/bin/gm
sudo ln -s `which convert` /usr/bin/convert
  • brew 请自行安装

##使用

import 'package:captcha/captcha.dart';
main() {
  Captcha.generate(generated:(c) {
    print(c.text);
    //print(c.file.readAsBytesSync()); // 读取文件流
  });
}

About

dart captcha lib

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages