Comments (8)
Which version of captcha-canvas you are using right now?
from captcha-canvas.
Version: 3.1.0
from captcha-canvas.
ok, issue is confirmed I will try to solve it today thank you for reporting this. For the time you can use CaptchaGenerator
from captcha-canvas.
Okay, for the time being, I will use 6 characters and wait for the bug to be fixed. :)
from captcha-canvas.
To solve this problem you have to use drawCaptcha before addDecoy and drawTrace. So,
// wrong
const captcha = new Captcha(100, 100);
captcha.addDecoy().drawTrace().drawCaptcha({ characters: 4 });
// right
const captcha = new Captcha(100, 100);
captcha.drawCaptcha({ characters: 4 }).addDecoy().drawTrace();
Try this and let me know if you are still facing any problems.
from captcha-canvas.
New release v3.1.1 will solve your issue.
const captcha = new Captcha(100, 100, 4);
captcha.addDecoy().drawTrace().drawCaptcha();
This will create a captcha with 4 characters and also you can draw a captcha above the decoy and trace line.
from captcha-canvas.
from captcha-canvas.
Let me know if your issue is resolved or not. If it is resolved then please close the issue
from captcha-canvas.
Related Issues (20)
- My VPS partition failed, and I'm reinstalling dependencies HOT 2
- repl.it issue HOT 6
- fonts HOT 3
- RuntimeError: libfontconfig.so.1: cannot open shared object file: No such file or directory HOT 4
- Image captcha not show words HOT 8
- Image captcha not show words
- Fontconfig error: Cannot load default config file HOT 4
- Specified module could not be found. HOT 1
- "MODULE NOT FOUND' captcha-canvas HOT 4
- skia-canvas module not found HOT 1
- feature request: setCaptcha support to pass SetCaptchaOption array HOT 5
- .setBackground() not working (v2.3.1) HOT 3
- WARNING: lavapipe is not a conformant vulkan implementation, testing use only. HOT 10
- Could not find find "Cargo.toml". Did not copy cdylib:skia-canvas HOT 7
- invalid ELF header HOT 7
- Text not appearing in Captcha HOT 2
- letters and decoys not showing up HOT 1
- errors in docker HOT 1
- Cannot find module 'XXX/../package.json' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from captcha-canvas.