There is a huge amount of unused white space in the QR code. The optional parameter margin is 4 by default. Below I added red lines to indicate the overhead: The huge default border is intended to kee