In the documentation there seems to be something about setting the zoom size of pixels. I imagine that will solve your problem.
include('../lib/full/qrlib.php');
include('config.php');
// how to configure pixel "zoom" factor
$tempDir = EXAMPLE_TMP_SERVERPATH;
$codeContents = '123456DEMO';
// generating
QRcode::png($codeContents, $tempDir.'007_1.png', QR_ECLEVEL_L, 1);
QRcode::png($codeContents, $tempDir.'007_2.png', QR_ECLEVEL_L, 2);
QRcode::png($codeContents, $tempDir.'007_3.png', QR_ECLEVEL_L, 3);
QRcode::png($codeContents, $tempDir.'007_4.png', QR_ECLEVEL_L, 4);
// displaying
echo '<img src="'.EXAMPLE_TMP_URLRELPATH.'007_1.png" />';
echo '<img src="'.EXAMPLE_TMP_URLRELPATH.'007_2.png" />';
echo '<img src="'.EXAMPLE_TMP_URLRELPATH.'007_3.png" />';
echo '<img src="'.EXAMPLE_TMP_URLRELPATH.'007_4.png" />';
Exit:
Documentation
Note: I did a test and realized that the image does not seem to be overwritten when a new one is generated with the same name, so for testing purposes it would be good to delete the previously generated image or simply generate a dynamic name with a hash for example:
$nameImg = md5(date('d-m-Y')).'.png';
QRcode::png($codeContents, $tempDir.$nameImg, QR_ECLEVEL_L, 5);
echo '<img src="'.EXAMPLE_TMP_URLRELPATH.$nameImg'" />';
Wouldn’t that be your browser cache? Try this
echo '<img src="Imagem_QRCODE_H.png?_=' . filemtime('Imagem_QRCODE_H.png') . '"/>';
– Guilherme Nascimento