1QRENCODE(1) General Commands Manual QRENCODE(1)
2
3
4
6 qrencode - Encode input data in a QR Code and save as a PNG or EPS im‐
7 age.
8
10 qrencode [-o FILENAME] [OPTION]... [STRING]
11
12
14 Libqrencode is a library for encoding data in a QR Code symbol, a kind
15 of 2D symbology that can be scanned by handy terminals such as a mobile
16 phone with CCD. The capacity of QR Code is up to 7000 digits or 4000
17 characters, and has high robustness.
18
19 Qrencode is a utility software using libqrencode to encode string data
20 in a QR Code and save as a PNG or EPS image.
21
22
24 -h, --help
25 display help message.
26
27 -o FILENAME, --output=FILENAME
28 write image to FILENAME. If '-' is specified, the result will be
29 output to standard output. If -S is given, structured symbols
30 are written to FILENAME-01.png, FILENAME-02.png, ... (suffix is
31 removed from FILENAME, if specified)
32
33 -r FILENAME, --read-from=FILENAME
34 read input data from FILENAME.
35
36 -s NUMBER, --size=NUMBER
37 specify the size of dot (pixel). (default=3)
38
39 -l {LMQH}, --level={LMQH}
40 specify error correction level from L (lowest) to H (highest).
41 (default=L)
42
43 -v NUMBER, --symversion=NUMBER
44 specify the minimum version of the symbol. See SYMBOL VERSIONS
45 for more information. (default=auto)
46
47 -m NUMBER, --margin=NUMBER
48 specify the width of margin. (default=4)
49
50 -d NUMBER, --dpi=NUMBER
51 specify the DPI of the generated PNG. (default=72)
52
53 -t {PNG,PNG32,EPS,SVG,XPM,ANSI,ANSI256,ASCII,ASCIIi,UTF8,UTF8i,ANSI‐
54 UTF8,ANSIUTF8i,ANSI256UTF8}
55 --type={PNG,PNG32,EPS,SVG,XPM,ANSI,ANSI256,ASCII,ASCIIi,UTF8,UTF8i,AN‐
56 SIUTF8,ANSIUTF8i,ANSI256UTF8}
57 specify the type of the generated image. (default=PNG)
58
59 -S, --structured
60 make structured symbols. Version number must be specified with
61 '-v'.
62
63 -k, --kanji
64 assume that the input text contains kanji (shift-jis).
65
66 -c, --casesensitive
67 encode lower-case alphabet characters in 8-bit mode. (default)
68
69 -i, --ignorecase
70 ignore case distinctions and use only upper-case characters.
71
72 -8, --8bit
73 encode entire data in 8-bit mode. -k, -c and -i will be ignored.
74
75 -M, --micro
76 encode in a Micro QR Code. See MICRO QR CODE for more informa‐
77 tion.
78
79 --rle enable run-length encoding for SVG.
80
81 --svg-path
82 use single path to draw modules for SVG.
83
84 --inline
85 only useful for SVG output, generates an SVG without the XML
86 tag.
87
88 --foreground=RRGGBB[AA]
89 --background=RRGGBB[AA]
90 specify foreground/background color in hexadecimal notation.
91 6-digit (RGB) or 8-digit (RGBA) form are supported. Color out‐
92 put support available only in PNG, EPS and SVG.
93
94 --strict-version
95 disable automatic version number adjustment. If the input data
96 is too large for the specified version, the program exits with
97 the code of 1.
98
99 -V, --version
100 display the version number and copyrights of the qrencode.
101
102 --verbose
103 display verbose information to stderr.
104
105 [STRING]
106 input data. If it is not specified, data will be taken from
107 standard input.
108
109
111 The symbol versions of QR Code range from Version 1 to Version 40.
112 Each version has a different module configuration or number of modules,
113 ranging from Version 1 (21 x 21 modules) up to Version 40 (177 x 177
114 modules). Each higher version number comprises 4 additional modules
115 per side by default. See http://www.qrcode.com/en/about/version.html
116 for a detailed version list.
117
118
120 With Micro QR Code, You can embed data in a smaller area than with QR
121 Code, but the data capacity is strongly limited. The symbol versions
122 range from Version 1 to 4.
123
124
126 qrencode -l L -v 1 -o output.png 'Hello, world!'
127 encode into a symbol version 1, level L.
128
129 qrencode -iSv 1 --output=output.png
130 read standard input and encode it into a structured-appended
131 symbols in case-insensitive mode.
132
133 qrencode -S -v 40 -l L -r bigfile.txt -o output.png
134 read input data from bigfile.txt and encode into a symbol ver‐
135 sion 40, level L.
136
137
139 Written by Kentaro Fukuchi.
140
141
143 Main Web Site: https://fukuchi.org/works/qrencode/
144
145 Source code repository: https://github.com/fukuchi/libqrencode/
146
147
149 Copyright (C) 2006-2018 Kentaro Fukuchi.
150
151
152
153qrencode 4.1.1 Aug. 28, 2020 QRENCODE(1)