moving from v4 to v5 #263
-
Apparently I've been using version 4 of this awesome script for too long and since I've just started using a new server, composer installed version 5 for me. Everything still works fine, although it's now generating very big SVG QR codes instead of small 285x285px PNG codes that I'm used to. This is my code:
What do I need to change to get the simple QR/PNG 285x285px that was generated by version 4? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey, the default output has changed from PNG to SVG. In order to keep the PNG output, you will need to pass a Lines 17 to 22 in 0a897ca Alternatively, if you want to keep the (arguably fancier) SVG output, you can simply style the SVG (or containing element) via CSS. |
Beta Was this translation helpful? Give feedback.
Hey, the default output has changed from PNG to SVG.
In order to keep the PNG output, you will need to pass a
QROptions
instance just as shown in the GD output example:php-qrcode/examples/image.php
Lines 17 to 22 in 0a897ca
Alternatively, if you want to keep the (arguably fancier) SVG output, you can simply style the SVG (or containing element) via CSS.