QRENCODE(1)
๐ธ QRENCODE(1) ๐ธ
okay bestie, welcome to the General Commands Manual page for qrencode, and trust me you're gonna want to sit down for this one because it's lowkey iconic ๐
โจ NAME โจ
qrencode โ encode input data in a QR Code and save as a PNG or EPS image. that's it. that's the whole job. and she serves.
๐ฆ SYNOPSIS ๐ฆ
qrencode [-o FILENAME] [OPTION]... [STRING]
like, that's the vibe. short, sweet, slays.
๐ DESCRIPTION ๐
Libqrencode is a library for encoding data in a QR Code symbol, which is a kind of 2D symbology that can be scanned by handy terminals such as a mobile phone with CCD. not me explaining QR codes to you like you've never held a phone, but okay, we're being thorough ๐ซถ
the capacity of QR Code is up to 7000 digits or 4000 characters, and it has high robustness. she's strong, she's resilient, she holds a lot of tea.
qrencode is a utility software using libqrencode to encode string data in a QR Code and save as a PNG or EPS image. so basically: you give her words, she gives you a scannable little square masterpiece. main character energy fr fr ๐
๐ OPTIONS ๐
here's the full menu, no skips, no cuts, we don't gatekeep here โจ
-h,--helpโ display help message. the "hey bestie what do I do" button.-o FILENAME,--output=FILENAMEโ write image to FILENAME. if-is specified, the result will be output to standard output. and if-Sis given, structured symbols are written toFILENAME-01.png,FILENAME-02.png, ... (suffix is removed from FILENAME, if specified). yes she numbers them, she's organized like that ๐-r FILENAME,--read-from=FILENAMEโ read input data from FILENAME. instead of typing it all out, you just point at a file. queen behavior.-s NUMBER,--size=NUMBERโ specify the size of dot (pixel). (default=3). bigger number = chunkier square.-l {LMQH},--level={LMQH}โ specify error correction level fromL(lowest) toH(highest). (default=L). higher = she can survive more damage, at the cost of capacity. glow-up with a price tag.-v NUMBER,--symversion=NUMBERโ specify the minimum version of the symbol. See SYMBOL VERSIONS for more information. (default=auto). she'll pick for you unless you insist.-m NUMBER,--margin=NUMBERโ specify the width of margin. (default=4). personal space! respect it!-d NUMBER,--dpi=NUMBERโ specify the DPI of the generated PNG. (default=72).-t {PNG,PNG32,EPS,SVG,XPM,ANSI,ANSI256,ASCII,ASCIIi,UTF8,UTF8i,ANSIUTF8,ANSIUTF8i,ANSI256UTF8},--type={PNG,PNG32,EPS,SVG,XPM,ANSI,ANSI256,ASCII,ASCIIi,UTF8,UTF8i,ANSIUTF8,ANSIUTF8i,ANSI256UTF8}โ specify the type of the generated image. (default=PNG). look at all those options, she's versatile, she contains multitudes ๐-S,--structuredโ make structured symbols. version number must be specified with-v. no version, no structured symbols, that's the rule, periodt.-k,--kanjiโ assume that the input text contains kanji (shift-jis).-c,--casesensitiveโ encode lower-case alphabet characters in 8-bit mode. (default). she's paying attention to your caps, respectfully.-i,--ignorecaseโ ignore case distinctions and use only upper-case characters. EVERYTHING GETS LOUD. ๐ข-8,--8bitโ encode entire data in 8-bit mode.-k,-cand-iwill be ignored. sorry girlies, they're getting benched.-M,--microโ encode in a Micro QR Code. See MICRO QR CODE for more information. smol but mighty ๐ง--rleโ enable run-length encoding for SVG.--svg-pathโ use single path to draw modules for SVG.--inlineโ only useful for SVG output, generates an SVG without the XML tag.--foreground=RRGGBB[AA],--background=RRGGBB[AA]โ specify foreground/background color in hexadecimal notation. 6-digit (RGB) or 8-digit (RGBA) form are supported. color output support available only inPNG,EPSandSVG. so if you're out here trying to colorize your ANSI output... no. not happening. ๐--strict-versionโ disable automatic version number adjustment. if the input data is too large for the specified version, the program exits with the code of1. no rescuing you, no being nice about it, she just leaves.-V,--versionโ display the version number and copyrights of theqrencode.--verboseโ display verbose information tostderr. she's telling you everything, in detail, whether you asked or not.[STRING]โ input data. if it is not specified, data will be taken from standard input.
๐ฅ SYMBOL VERSIONS ๐ฅ
the symbol versions of QR Code range from Version 1 to Version 40. each version has a different module configuration or number of modules, ranging from Version 1 (21 x 21 modules) up to Version 40 (177 x 177 modules). each higher version number comprises 4 additional modules per side by default. see http://www.qrcode.com/en/about/version.html for a detailed version list. iykyk ๐
๐ธ MICRO QR CODE ๐ธ
with Micro QR Code, You can embed data in a smaller area than with QR Code, but the data capacity is strongly limited. the symbol versions range from Version 1 to 4. tiny. adorable. do not ask her to carry your whole novel though ๐ญ
๐ EXAMPLES ๐
okay these are the moments, the little demos, the show-and-tell:
qrencode -l L -v 1 -o output.png 'Hello, world!'
encode into a symbol version 1, level L.
qrencode -iSv 1 --output=output.png
read standard input and encode it into a structured-appended symbols in case-insensitive mode.
qrencode -S -v 40 -l L -r bigfile.txt -o output.png
read input data from bigfile.txt and encode into a symbol version 40, level L.
look at her go. obsessed. ๐
๐ AUTHOR ๐
written by Kentaro Fukuchi. legend, icon, the moment.
๐ RESOURCES ๐
- main Web Site:
https://fukuchi.org/works/qrencode/ - source code repository:
https://github.com/fukuchi/libqrencode/
๐ซถ COPYRIGHT ๐ซถ
Copyright (C) 2006-2018 Kentaro Fukuchi.
bestie reminder: that's qrencode 4.1.1, from Aug. 28, 2020, and yeah she's still eating ๐ go make something scannable, you've got this โจ๐๐ฆ
๐ฆ where this page comes from
- alpine 3.24: libqrencode-doc 4.1.1-r3 ยท LGPL-2.1-or-later
- arch rolling: qrencode 4.1.1-4 ยท GPL
- debian bookworm: qrencode 4.1.1-1 ยท LGPL-2.1-or-later
- debian trixie: qrencode 4.1.1-2 ยท LGPL-2.1-or-later
- epel 10: qrencode 4.1.1-9.el10_0 ยท LicenseRef-Callaway-LGPLv2+
- epel 9: qrencode 4.1.1-1.el9 ยท LGPLv2+
- fedora 43: qrencode 4.1.1-11.fc43 ยท LicenseRef-Callaway-LGPLv2+
- fedora 44: qrencode 4.1.1-12.fc44 ยท LicenseRef-Callaway-LGPLv2+
- nixpkgs unstable: qrencode 4.1.1
- opensuse-leap 16.0: qrencode 4.1.1-160000.2.2 ยท LGPL-2.1-or-later
- opensuse-leap 16.0: qrencode 4.1.1-160000.2.2 ยท LGPL-2.1-or-later
- opensuse-leap 16.0: qrencode 4.1.1-160000.2.2 ยท LGPL-2.1-or-later
- opensuse-leap 16.0: qrencode 4.1.1-160000.2.2 ยท LGPL-2.1-or-later
- ubuntu jammy: qrencode 4.1.1-1 ยท LGPL-2.1-or-later
- ubuntu noble: qrencode 4.1.1-1build2 ยท LGPL-2.1-or-later
- ubuntu questing: qrencode 4.1.1-2
- ubuntu resolute: qrencode 4.1.1-2build1 ยท LGPL-2.1-or-later
- ubuntu stonking: qrencode 4.1.1-2build1 ยท LGPL-2.1-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms