Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问有没有参数控制生成的图片大小? #8

Open
yjw2015 opened this issue Sep 7, 2017 · 6 comments
Open

请问有没有参数控制生成的图片大小? #8

yjw2015 opened this issue Sep 7, 2017 · 6 comments

Comments

@yjw2015
Copy link

yjw2015 commented Sep 7, 2017

No description provided.

@yjw2015 yjw2015 changed the title 请问有没有es 请问有没有es5语法版本的 Sep 7, 2017
@yjw2015 yjw2015 changed the title 请问有没有es5语法版本的 请问有没有参数控制生成的图片大小? Sep 7, 2017
@yjw2015
Copy link
Author

yjw2015 commented Sep 8, 2017

现在生成的图片是 200 X 70的,如果我想设置生成的图片为100 x 40 ,应该修改哪些参数?

@fundon
Copy link
Member

fundon commented Sep 9, 2017

如果你是要在前端使用,可以设置图片的大小 <img width="100" height="40" src="gif">

@yjw2015
Copy link
Author

yjw2015 commented Sep 11, 2017

是想直接在captcha.js这个文件里修改一些参数,将gif设置为100*40

@fundon
Copy link
Member

fundon commented Sep 11, 2017

好的,我想想如何处理。

@congk
Copy link

congk commented Sep 26, 2017

建议在style中增加更多参数支持,比如字符集、字间距...,不知道楼主有没有这个计划?

@fundon
Copy link
Member

fundon commented Jan 24, 2018

@congk 欢迎 PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants