chillerlan / php-qrcode

A PHP QR Code generator and reader with a user-friendly API.
https://smiley.codes/qrcode/
Apache License 2.0
2.02k stars 302 forks source link

A string excedeu o limite em bits #144

Closed Monteiroemelo closed 2 years ago

Monteiroemelo commented 2 years ago

Anexo imagem do erro.

QRCode='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQgAAAEICAYAAACj9mr/AAAAAXNSR0IArs4c6QAAHidJREFUeF7t3VFyJMcNBNDRFeR7yCHd/wyO8EF8hnHwwxH2smg9TmLRTSr3d1EFIJHIQvd0N3/59bffn48b/PvXP/9BUfzt73+QXWJ0iuXkV+00lun91O/J7qpYlAenmLVGiovup3aJX107bfdLBeI9pNocaqdFm95P/VYgzkhp46ud1mPjENRYKhAHpLRR1U6LMb2f+q1AVCA+4koFogJx5MZVYtVLjMfj1hNEUiA9sXQkS4DayCPJV09t9ZFck2s9NnwkNU+wUkFUu6S+ST0SDE5+300QG42lACRk2chDi6F5TMec4KyxTPtQrBR7tdPGV7sKhCJ/sEtIpW6V4LpfYqekn445wVljmfahWCX10OZNclMfyVQ2jUEniGlEcT8lvTYluj1ey+oJqLEkTaSxaL6JncaidhWIoBoJqdStElz3S+wqEOcbb0mzJfXQ5p3mqXJS/U5j8PIEoQSfBl7HLwVKCTltN42LEkjrpsRVnBM7jVkxTTiU4KI10viUk4q97kc3KaeLNg3eNCgKntopmRWXxE5jUUyn7aa5pg04jYvWSONLuKa5dYI4PM6thUzskgIpMdROY5lufN2vArFzOaZ86QRxeLdDwVM7bcpEhKZj0YaetqtAVCD47rqOX0pSbaJpuwqEVih7ilDvGagI6X7KU90vOSgUaeX4rSeIDaC0eRV4JZ/ul5BKfajddCxK0g2/ioHWN8ltg/caXwXiwAwlpJ4cSr5ErJS4d4pFSar1UAx0v6S+SW4ViIuu+7U5Ngg0HYs2h/rdEKukiaabV3FRnJPcKhAVCOXjQ8VKicuOg8lKY0maqAIxf7/my/3MuaGkyUmZkFQbtQLxGBdJxTSpbyJ+G7zX+G59D0K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0DyuEqYKhN9H0CZPalmBqECMP9STnJQViApE9PagnoBKtOkTf3q/RP2TRr3Kr9ZNc0v4Mu1D99uYJHX66ATRCaITxAeqpA2tIqT7VSDwGwxfEVA9eRM7PWX1lND9dDpSv0l9k5iTtRpzIhoqEOpD8z3l9m0nCG3ADdJrwdVOC66NqvttYDVN+iQ3zVd9aH3VbhqrCgS+2r0hLupj+sRSMqud5pE024bQJfnqWm18tatAHC5FFJRp4ipJ1W9ilxBS16qd5lGByH6d0INCear16CUG3qRU4LVhEjttXo1Z91NSqd8N0ie5ab7qQycDtdPDUuN7+RJDHahd0hx3Ak9jUTvFb3q/ab8b8SU+rhIw5f2dhIkmCCWQ2ilQid2GuipJ1U7xm95v2u9GfImPCsT5q18nXCoQ2B2JWCVkVqHTcR3TPZppHmq3EYvil5zaieAkaxU/rUcFAn/FULIkwCcNrX6VQGqnftVO/WqTK6bTTZnsl6xV/LQeFYgKhHKqE8QH335QsUoOGV2rxRwVCHU6badJaIGSS4Lp3HQ/PU2mCaSYJn41t426KdfULsFPuZFMR4rpKZYv96f3tBgKigKvhUzstImSRtX4NBbFL9kvadSr+KL5aj0SnLUXKhD4eTkt2rRdQiolkMassajfZL8KhP+tEcVK69EJAp/W1MZK7LRonSC8YTpB+E+anSA6QbB+qVh1gjhDqvhpQRKck0uMfwPij5q07y/ESgAAAABJRU5ErkJggg==';

Captura de tela 2022-09-09 154809

codemasher commented 2 years ago

That's a lot of bits (max for version 40 with ECC level L is 23648)! So where exactly is the problem? Was the above image rendered despite the error? Can you post an example of the code, including the string that produced the error? Also it would be helpful if you maybe could post in a language we both understand. Help me help you. Thanks! (the issue templates exist for a reason)

Monteiroemelo commented 2 years ago

Image 1 code. Image 2 exit. The code is the whatsapp qrcode. A shorter code(string) really works. How to solve?. 1 - Code 2 - Exit

codemasher commented 2 years ago

Uh, that's not how it works. Do you want to read the QR Code? if that's the case, try the following:

$result = (new QRCode)->readFromBlob(base64_decode(str_replace('data:image/png;base64,', '', $data)));

var_dump($result);

If you want to generate a QR Code, you need to input the string that it should contain:

$data   = 'this is a simple string';
$qrcode = (new QRCode)->render($data);
codemasher commented 2 years ago

If you want to "convert" the given QR Code to a different output format provided by this library, you can use the reader result from the previous example and re-encode it like so:

$qrcode = (new QRCode)->render($result->data);