Git Product home page Git Product logo

coolcaptcha's People

Contributors

hunter-ji avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

coolcaptcha's Issues

setting image dimensions

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.