Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object of class GdImage could not be converted to string #154

Open
kirankumarmitnas opened this issue Nov 20, 2024 · 0 comments
Open

Object of class GdImage could not be converted to string #154

kirankumarmitnas opened this issue Nov 20, 2024 · 0 comments

Comments

@kirankumarmitnas
Copy link

use Zxing\QrReader;
$qrcode = new QrReader($path);
echo '

',print_r($qrcode->text()),'
';

VENDORPATH\zxing\qr-reader\lib\GDLuminanceSource.php at line 54

47 {
48 parent::__construct($width, $height);
49
50 $this->dataWidth = $width;
51 $this->dataHeight = $height;
52 $this->left = 0;
53 $this->top = 0;
54 $this->$gdImage = $gdImage;
55
56
57 // In order to measure pure decoding speed, we convert the entire image to a greyscale array
58 // up front, which is the same as the Y channel of the YUVLuminanceSource in the real app.
59 $this->luminances = array();
60 //$this->luminances = $this->grayScaleToBitmap($this->grayscale());
61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant