Wolfram Research

Function Repository Resource:

LogoQRCode

Source Notebook

Generate a QR code with an image embedded in the center

Contributed by: Jon McLoone

ResourceFunction["LogoQRCode"][text,image]

generate a QR code with image embedded in the center.

ResourceFunction["LogoQRCode"][text,image,size]

generate a QR code with image embedded in the center with image size size.

Details and Options

QR codes contain redundant information that allows the embedding of a logo to not destroy the functionality of the QR code. However, the reduced redundacy means that such QR codes may have a higher failure rate when scanned poorly.

Examples

Basic Examples

Embed a logo in a QR code:

In[1]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/objects/1af79781-85ba-4f46-b51f-52ce55448a31"]
Out[1]=

Scope

An additional argument controls the output size:

In[2]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/objects/1f44be6d-9bfa-4dce-ba2b-9b9aeef4cedc"]
Out[2]=

Applications

Create a QR code in the color of the embedded logo:

In[3]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/objects/4fef6768-f321-47bd-9387-13e877701aec"]
Out[3]=

Possible Issues

Some embedded images may interfere with the QR image. LogoQRCode will return $Failed in these circumstances.

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

License Information