khanamiryan / php-qrcode-detector-decoder

This is a PHP library to detect and decode QR-codes. This is first and only QR code reader that works without extensions.
Apache License 2.0
1.37k stars 325 forks source link

Attempted to call function \"imagecreatefromstring\" from namespace \"Zxing\" #74

Open k0v4back opened 5 years ago

k0v4back commented 5 years ago

My code: `<?php

use Zxing\QrReader;

$qrcode = new QrReader('http://qrcoder.ru/code/?lalala&4&0'); $text = $qrcode->text(); //return decoded text from QR Code echo $text;

I have error: Attempted to call function \"imagecreatefromstring\" from namespace \"Zxing\" ` How to fix problem?

CeloGomesBR commented 5 years ago

Check if you have GD lib extension activated in PHP

thiagocopano commented 3 years ago

Check if you have GD lib extension activated in PHP

This solved for me, uncommenting extension GD on php.ini file.