qrusty icon indicating copy to clipboard operation
qrusty copied to clipboard

size (width, height) is inconsistent

Open nbw opened this issue 3 years ago • 0 comments

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

nbw avatar May 30 '22 00:05 nbw