/qrcode-svg-example

Example code of generating QR Code PNG and SVG image by using ZXing.

Primary LanguageJavaCreative Commons Attribution Share Alike 4.0 InternationalCC-BY-SA-4.0

ZXing QR Code SVG rendering example.

Description

Generating QR Code PNG and SVG image by using ZXing.

Classes

App

The main entry point of this example project.

PrintQR

Generate a PNG format QR Code image file.

PrintQRSVG

Generate an SVG format quasi QR Code image file.
The original source code about the QR circle conversion was published by Curtis Yallop on 2020-01-28.
See also the post on Stack Overflow:
Generate QR codes with custom dot shapes using zxing

Usage

Configure application.properties and run App.

Requirements

ZXing, Java >= 17. About the QR Code, please read QR code.com articles as well.

Example images

version:4, error correction level:H, x3 scaling, square shape cell

4-x3-square

version:4, error correction level:H, x3 scaling, circle shape cell

4-x3-circle