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

once I use directly the wanted phrase to the builder, the inline() function can't be used ? #67

Open
llxcyzgh opened this issue Apr 23, 2019 · 1 comment

Comments

@llxcyzgh
Copy link

llxcyzgh commented Apr 23, 2019

 $captcha = new CaptchaBuilder('12345');           
 var_dump($captcha->getPhrase()); // 12345           
 var_dump($captcha->inline());exit; // error: imagejpeg() expects parameter 1 to be resource, null given
@llxcyzgh
Copy link
Author

llxcyzgh commented Apr 23, 2019

well, it's solved.

I need to add one line code after newing a CaptchaBuilder, just like:

$captcha = new CaptchaBuilder('12345');
$captcha = $captcha->build();// use GD to generate a picture
var_dump($captcha->getPhrase()); // 12345
var_dump($captcha->inline()); // data:image/jpeg;base64,....

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

1 participant