Skip to content

moving from v4 to v5 #263

Answered by codemasher
vespino asked this question in Q&A
Discussion options

You must be logged in to vote

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:

$options = new QROptions;
$options->version = 7;
$options->outputType = QROutputInterface::GDIMAGE_PNG;
$options->scale = 20;
$options->outputBase64 = false;

Alternatively, if you want to keep the (arguably fancier) SVG output, you can simply style the SVG (or containing element) via CSS.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vespino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants