Skip to content

size (width, height) is inconsistent #2

Description

@nbw

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions