endroid / qr-code

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

4.4.3 update made QR codes too bold #360

Closed daniser closed 2 years ago

daniser commented 2 years ago

My config:

$qrCode = QrCode::create($this->data)
    ->setEncoding(new Encoding('UTF-8'))
    ->setErrorCorrectionLevel(new ErrorCorrectionLevelHigh)
    ->setSize(100)
    ->setMargin(10)
    ->setRoundBlockSizeMode(new RoundBlockSizeModeMargin)
    ->setForegroundColor(new Color(0, 0, 0))
    ->setBackgroundColor(new Color(255, 255, 255, 127));

return (new PngWriter)->write($qrCode);

Result (4.4.2): image

Result (4.4.3): image

While iPhone X recognizes first QR code "on the fly", it struggles with the second one.

endroid commented 2 years ago

Hi @daniser thank you. I looked into it and it appeared there was something wrong with the offsets. This should be fixed in 4.4.6.