QR Code Customization

Modified on Thu, May 18, 2023 at 2:35 PM

You can enter commands in the status command for the QR Code block.


Example: qrforecolor=red


Status Settings for QRCode

==========================================

qrsize        image size in pixels (default 300)

qrborder    border size in pixels (default 0)

qrforecolor    QR Code color (Default Black) - Ignored if mode is set to QR

qrbackcolor    QR Code background color (Default White)

qrbordercolor    QR Code border color (Default same as qrbackcolor)

qrLevel        QR Code Level from 1 to 40 (Default 0, to calculate based on input string)

qrgradcolor1    QR Code Gradient Color 1

qrgradcolor2    QR Code Gradient Color 1

qrgradangle    QR Code Gradient angle

qrgradmode    BG (default) or QR for applying gradient fill to the foreground (QR) or background (BG)


qrError        If empty then M for no gradient H for Gradient, other values L and Q


qrEncode    Defaults to byte, other values numeric and alphanumeric


QR Code Error Correction Capability 

=================================== 

Level L Approx.     7%         More Characters allowed

Level M Approx. 15% 

Level Q Approx. 25% 

Level H Approx. 30%         Less Characters allowed


QR Code - Standard with 2px Wide Border

qrborder=2

Standard.png


QR Code - Solid Red

hide qrforecolor=red qrbackcolor=white

SolidRed.png

QR Code - Background Gradient Fill

qrborder=5 qrgradcolor1=#0000FF qrgradcolor2=#FF80FF qrgradangle=45 

BGGradient.png


qrborder=5 qrgradcolor1=red qrgradcolor2=orange qrgradangle=30

BGGradient_RO.png


qrborder=5 qrforecolor=gray qrgradcolor1=yellow qrgradcolor2=orange qrgradangle=0

BGGradient_YO.png


QR Code - ForeColor Gradient Fill

qrborder=5 qrgradcolor1=red qrgradcolor2=orange qrgradangle=30 qrgradmode=QR

FCGradient.png


qrborder=5 qrbackcolor=#FFFFAA qrgradcolor1=green qrgradcolor2=purple qrgradangle=90 qrgradmode=QR

FCGradient_PG.png



Notes:


It is not possible to make the QR code a specific CMYK color value however instead of a named html color, you can use the Hex representation of the color instead:


100/81/13/1 is equivalent to  #0030DC


so

qrforecolor=darkblue qrbackcolor=white

would be

qrforecolor=#0030DC qrbackcolor=#000000


They are several online sites that do the conversion from CMYK to Hex. example: https://www.ginifab.com/feeds/pms/cmyk_to_rgb.php






Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article