/
QR Code Specifications
QR Code Specifications
Size of the QR Code is determined by:
- Length of the data to be encoded
- Error correction level (L, M, Q, H)
- Pixels per block
- Margin (White space around QR code)
Following options can be provided to the user w.r.t the text embedded in the QR code image
- Text to be embedded
- Font Name
- Font Size
- Text Tracking(To control spacing between characters)
Following options can be provided to the user w.r.t the QR code image
- Colour model of the image(RGB/CMYK)
- Border size
- File format of the QR image
Parameter | Description | Mandatory/ Optional | Values Set | Default Value |
---|---|---|---|---|
data | Data to be encoded as QR image | Mandatory | - | - |
errorCorrectionLevel | Error correction level for the generated QR code | Optional | L, M, Q, H | H |
pixelsPerBlock | Number of pixels to be painted per bit-matrix encoded value | Optional | - | 2 |
margin | Number of pixels as margin for QR code | Optional | - | 3 |
text | Text to be embedded in QR image | Optional | - | - |
fontName | Font name of the text | Optional | - | Verdana |
fontSize | Font size of the text | Optional | - | 11 |
tracking | Tracking value to be set for TextAttribute.TRACKING | Optional | -0.1 to 0.3 recommended | 0.1 |
colourModel | Colour model of the QR image | Optional | RGB, CMYK | RGB |
borderSize | QR image border size in pixels | Optional | - | 1 |
imageFormat | File format of the QR image | Optional | - | PNG |
Sample Values:
{ "qrSpec": { "data": "http://www.sunbird.org/dial/2A42UH", "errorCorrectionLevel": "H", "pixelsPerBlock": 3, "margin": 3 }, "textSpec": { "text": "2A42UH", "fontName": "Verdana", "fontSize": 12, "tracking": -0.1 }, "imageSpec": { "imageFormat": "png", "colourModel": "CMYK", "borderSize": 2 } }
, multiple selections available,
Related content
DIAL Code generation
DIAL Code generation
More like this
LR-325: DIAL Service QR Code Image List
LR-325: DIAL Service QR Code Image List
More like this
Sunbird RC QR code backward compatibility support for SunbirdEd
Sunbird RC QR code backward compatibility support for SunbirdEd
More like this
Sunbird RC QR code generation
Sunbird RC QR code generation
More like this
Adoption of Sunbird DIAL Context
Adoption of Sunbird DIAL Context
More like this
Image Generation API
Image Generation API
More like this