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

size (width, height) is inconsistent #2

Open
nbw opened this issue May 30, 2022 · 0 comments
Open

size (width, height) is inconsistent #2

nbw opened this issue May 30, 2022 · 0 comments

Comments

@nbw
Copy link
Owner

nbw commented May 30, 2022

Even if one specifies a size of 100 the returned qr code has a width/height of 128. This is something related to the rust qrcode library. Perhaps the dimensions are predetermined to fit all of the QR squares.

To reproduce:

q = Qrusty.qr!("https://elixir-lang.org/", :jpg, size: 100, ec: :m)
File.write("/test.jpg", q)
# see that test.jpg is NOT 100x100 pixels
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

No branches or pull requests

1 participant