ruby调用imagemagick实现验证码

作者在 2013-01-10 21:51:50 发布以下内容

效果不甚理想

#coding: utf-8
`convert -draw "line 5,35 95,5" -pointsize 50 -font ~/Desktop/wqy.ttc label:睁大挂跟 ~/Desktop/test.png`

上面的代码只能生成规则的字体,并且干扰线很细,不能设置变粗,暂时先调用python实现

Ruby | 阅读 4749 次
文章评论,共0条
游客请输入验证码
浏览2795704次
文章归档