-
-
Notifications
You must be signed in to change notification settings - Fork 319
Preferred way to create a PNG #261
Answered
by
codemasher
dabrandstetter
asked this question in
Q&A
-
I am using version 5.0.2. and asking myself what is the best way to create a png qr code?
at the moment i use:
$options = new QROptions();
$options->outputType = QROutputInterface::CUSTOM;
$options->outputInterface = QRGdImagePNG::class;
(new QRCode($options))->render('data');
but outputType and outputInterface are deprecated.
am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
codemasher
Apr 25, 2024
Hey, the deprecation is related to #223, which will remove/ignore the line $options->outputType = QROutputInterface::CUSTOM; in version 6 entirely.
Right now and as long as you're using version ^5.0 you will be fine.
Replies: 1 comment
-
Hey, the deprecation is related to #223, which will remove/ignore the line $options->outputType = QROutputInterface::CUSTOM; in version 6 entirely.
Right now and as long as you're using version ^5.0 you will be fine.
Beta Was this translation helpful? Give feedback.
All reactions
-
🚀 1
0 replies
Answer selected by
dabrandstetter
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment