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

Add support for error correction levels #46

Merged
merged 5 commits into from
Aug 13, 2024
Merged

Conversation

lyqht
Copy link
Owner

@lyqht lyqht commented Aug 13, 2024

Addresses #44


Description

The bigger the encoded data, the qr code tends to shrink in size to accommodate the increase in the qr code patterns required to encode it without overflowing its container size.

Hence, this PR adds a new feature for users to set their own correction level, and also recommends an appropriate correction level based on their current data length. The recommended data lengths are based off random sources of the internet.

Screenshot

CleanShot 2024-08-13 at 19 38 57

- Add support for including background or obtaining a transparent QR code
- Allow user to select error correction level, which affects the size of the QR code and image within
Copy link

vercel bot commented Aug 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mini-qr-code-generator ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 13, 2024 0:05am

@lyqht lyqht merged commit 77af150 into main Aug 13, 2024
2 checks passed
@lyqht lyqht deleted the feat/error-correction-levels branch August 13, 2024 12:21
@lyqht lyqht mentioned this pull request Aug 13, 2024
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

Successfully merging this pull request may close these issues.

1 participant