hunter-ji / coolcaptcha Goto Github PK
View Code? Open in Web Editor NEWA cool captcha.Customizable themes to match website style and enhance user experience.🥳🥳🥳
License: MIT License
A cool captcha.Customizable themes to match website style and enhance user experience.🥳🥳🥳
License: MIT License
When setting the dimensions of an image to 90 * 30, the entire image is not displayed. What is the minimum aspect ratio for image to be displayed? Is it possible to scale the image proportionally?
captcha: coolCaptcha.New(
coolCaptcha.SetWidth(60), // set the width of the image
coolCaptcha.SetHeight(20), // set the height of the image
coolCaptcha.SetCodeType(coolCaptcha.NumericCharacters), // only number captcha
)
imageBase64Data, code, err := a.captcha.Generate()
base64image:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAAUCAIAAABeYcl+AAACKklEQVR4nMSXy3LTPBSAdY7k+Hcb32qnaaftDxsY2MGWx2DJI/CEvAZLWJXS3BzbsWLn5ovEJAy0hEljxyH5RuOFRueczxpdbOZ/fE/2hwBMTsxEs3zzgjedRLNSRc2RSaQCQAJIggQIISBrVGE1LZMTKzDaA/t6pJ9PND1VtDo2JaksnTHVs6667vPAuow1K6d1X3sHSpWMT+y79sue8z9vOilT/73VFjZK51S5vXx9e/EqNM4LpIe12sK6dKS7X6/f9NxnU7V5JKXtsLHp6PHIs6++3Lwd2DdHWaNVYZ/efRA5ygPs+ZrA8qgEKajIWZHhMU1WIgAE8PdTPnSCJEDUdN4efGv371pep7GY7eGcLmm2VEEJVCLKx36bQmiRO36v5XXOve9GFBLyx8j9SwNKpKu28kMq10puDJTS5L477LpepzXsYFFsGllXGpAgip+WQAVitc0BUliRf+b3naDnDrtKuigTVV0aCKUSmUAqKJU7fESgKKyR3/Luz4L+WdBneVY1QylpAIIrUbpyrVoDpNTHoclDOxzY4cDkAYjKSR7zlDSipI1dRFmemjwweGjw0Ix8gwe0yOtYruf/uwupZEpBFQElFigKoc0SbZqcJvx0MtbjqBlHpxNecy6f5kFan/GL6M6e+wRJ1lAzRV3OMOIvuYLl2bJlaSNdqIuZOp/+N5uo6Zwc/GZiVhI4vP/i/rMdDw9ce2dgv38uh+GYd/jO/AgAAP//UxHzy8onj5EAAAAASUVORK5CYII=
The image is not fully displayed with the specified dimensions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.