You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Based on the example taken on php-qrcode/examples/image.php
If i take the exact same example you wrote : working.
If i just remove the content form moduleValues and put an eccLevel to ECC_H : working.
But i get a code length overflow with the following string of data : $data = 'otpauth://totp/flupflup.com:marco?secret=II6SXEVSTAQV4SNJ&issuer=flupflup.com'; $options = new QROptions([ 'version' => 7, 'outputType' => QRCode::OUTPUT_IMAGE_PNG, 'eccLevel' => QRCode::ECC_H, 'scale' => 5, 'imageBase64' => false, 'moduleValues' => [], ]); header('Content-type: image/png'); echo (new QRCode($options))->render($data);
It looks like it happen only with ECC_H and the other are working well.
I don't really know if my error is relevant or if I did something wrong. But it might be useful to share.
Here the stacktrace :
Stack trace:
Prevents fatal PHP error that can occur when the string to convert to the QR code exceeds the preset max-bits setting. (Previously hard coded to level 10.)
chillerlan/php-qrcode#37
Hello,
Based on the example taken on php-qrcode/examples/image.php
If i take the exact same example you wrote : working.
If i just remove the content form moduleValues and put an eccLevel to ECC_H : working.
But i get a code length overflow with the following string of data :
$data = 'otpauth://totp/flupflup.com:marco?secret=II6SXEVSTAQV4SNJ&issuer=flupflup.com';
$options = new QROptions([
'version' => 7,
'outputType' => QRCode::OUTPUT_IMAGE_PNG,
'eccLevel' => QRCode::ECC_H,
'scale' => 5,
'imageBase64' => false,
'moduleValues' => [],
]);
header('Content-type: image/png');
echo (new QRCode($options))->render($data);
It looks like it happen only with ECC_H and the other are working well.
I don't really know if my error is relevant or if I did something wrong. But it might be useful to share.
Here the stacktrace :
Stack trace:
Anyway, thank's for the tools, you've made a neat job.
The text was updated successfully, but these errors were encountered: