endroid / qr-code

QR Code Generator
https://endroid.nl
MIT License
4.45k stars 726 forks source link

Invalid data at path... #343

Closed pipovich16 closed 3 years ago

pipovich16 commented 3 years ago

Hi, i'm using qrCode in symfony 5 and i have this exception (Invalid data at path...) when execute $result = $writer->write($qrCode, $logo, $label). I think can't create png file. Any idea?

Thanks!

erufenix commented 2 years ago

Any solution?

stefanobusinarolo commented 2 years ago

Hi , I had the same problem and the reason was the $logo parameter. As a first step try without logo and without label with $result = $writer->write ($qrCode, NULL, NULL);