You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the readme.md there is an example, how to use the class, like this:
$result = Builder::create()
->writer(new PngWriter())
->writerOptions([])
->data('Custom QR code contents')
->encoding(new Encoding('UTF-8'))
->errorCorrectionLevel(ErrorCorrectionLevel::High)
->size(300)
->margin(10)
->roundBlockSizeMode(RoundBlockSizeMode::Margin)
->logoPath(DIR.'/assets/symfony.png')
->logoResizeToWidth(50)
->logoPunchoutBackground(true)
->labelText('This is the label')
->labelFont(new NotoSans(20))
->labelAlignment(LabelAlignment::Center)
->validateResult(false)
->build();
But I can't found any documentation about the valid parameters.
For example: errorCorrectionLevel(ErrorCorrectionLevel::High) What are the possible values?
Or what does 300stands for in ->size(300)? px? pt? em? I use size 300 with base64 output, but the image isshow very large. Maybe scaled by the browser maybe generated in >300px
Are there any alternative parameters for ->roundBlockSizeMode(RoundBlockSizeMode::Margin)??
Is there a detailed documentation for all the parameters, also for the writer, etc.?
The text was updated successfully, but these errors were encountered:
Hi @B0rner you can find the valid ErrorCorrectionLevel values in the enum and your IDE will suggest the available values when developing, the size is generally in pixels and the RoundBlockSizeMode values can be found in the enum and are documented at https://github.com/endroid/qr-code#round-block-size-mode. Good luck!
Hey,
in the
readme.md
there is an example, how to use the class, like this:But I can't found any documentation about the valid parameters.
For example:
errorCorrectionLevel(ErrorCorrectionLevel::High)
What are the possible values?Or what does
300
stands for in->size(300)
? px? pt? em? I use size 300 with base64 output, but the image isshow very large. Maybe scaled by the browser maybe generated in >300pxAre there any alternative parameters for
->roundBlockSizeMode(RoundBlockSizeMode::Margin)
??Is there a detailed documentation for all the parameters, also for the writer, etc.?
The text was updated successfully, but these errors were encountered: