Skip to content

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

@kirankumarmitnas

Description

@kirankumarmitnas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions