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 new functionality to qr code generator #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

krz
Copy link

@krz krz commented Oct 20, 2024

  • Checks for valid input for box size, border size, and error correction level.
  • Validates if the file format is correct and defaults to .png if not.
  • Optionally add a logo in the center of the QR code if a valid image file is provided.
  • The logo is resized and centered, ensuring it does not obstruct the QR code readability.
  • Input for error correction is now handled with a helper function that returns the correct constant.
  • Default file format validation and handling for common issues like invalid filenames or colors.
  • Moved error correction handling to its own function for clarity.
  • Modularized the QR code generation function to handle all parameters, including optional logo.

Checks for valid input for box size, border size, and error correction level.
Validates if the file format is correct and defaults to .png if not.
Optionally add a logo in the center of the QR code if a valid image file is provided.
The logo is resized and centered, ensuring it does not obstruct the QR code readability.
Input for error correction is now handled with a helper function that returns the correct constant.
Default file format validation and handling for common issues like invalid filenames or colors.
Moved error correction handling to its own function for clarity.
Modularized the QR code generation function to handle all parameters, including optional logo.
@hackelite01
Copy link
Owner

Kindly make changes again cause some of the files are modified.

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.

2 participants