simple-qrcode icon indicating copy to clipboard operation
simple-qrcode copied to clipboard

Add support for using GD library

Open raditzfarhan opened this issue 1 year ago • 4 comments

There is no support for Imagick for PHP 8.2 and above in Windows, thus making the package unusable for newer projects that are using minimum PHP 8.2. This PR add supports to use the GDLibRenderer which available on Bacon/BaconQrCode if the Imagick extension is not supported.

raditzfarhan avatar Apr 17 '24 02:04 raditzfarhan

Just FYI, I did managed to get Imagick & the QR Code library working with PHP 8.2.12 in Windows 11. Some articles that helped me: https://github.com/Imagick/imagick/issues/573 https://github.com/Imagick/imagick/issues/575 https://phpext.phptools.online/extension/images/imagick-121

eina84 avatar Apr 17 '24 02:04 eina84

Just FYI, I did managed to get Imagick & the QR Code library working with PHP 8.2.12 in Windows 11. Some articles that helped me: Imagick/imagick#573 Imagick/imagick#575 https://phpext.phptools.online/extension/images/imagick-121

Thanks for pointing it out. Will check on these. Thanks!

raditzfarhan avatar Apr 17 '24 04:04 raditzfarhan

Any update on this? Having an issue where Imagick is not supported on PHP8.3 and thus unable to generate PNG QR Codes (for emails for example)

JamieWBuzz avatar Jan 07 '25 12:01 JamieWBuzz

I've created a fork of this repository at. https://github.com/f9webltd/simple-qrcode. IF you submit the same PR there I'll merge it in 👍

ultrono avatar Apr 19 '25 10:04 ultrono