Start with the actual viewing distance
A card in a hand and a sign across a room need different physical sizes. Size the code for the real viewing position and test a physical proof; pixel dimensions alone cannot guarantee a reliable scan.
Protect the quiet zone
Keep the area around the pattern clear. The exports include four blank modules on every side. Never crop this border, stretch the code into a rectangle or place a busy image behind the modules.
Choose vector or raster appropriately
Use SVG when a printer or designer will scale the artwork. For a raster workflow, choose a PNG at the final delivery resolution and avoid JPEG compression. Print one copy at the final size and finish, then scan under expected lighting.