Wiki CgX

Parce que j'ai un cerveau, mais pas trop.

Outils pour utilisateurs

Outils du site


it:linux-utilitaires:qrencode

qrencode

Il existe un petit utilitaire pour générer des QRCODE en ligne de commande.

Installer le package si c'est pas fait : apt install qrencode

> qrencode https://wiki.cgx.me -t ANSIUTF8
█████████████████████████████████
█████████████████████████████████
████ ▄▄▄▄▄ █   █▄▀▄▄▄█ ▄▄▄▄▄ ████
████ █   █ █ ▀▄ █▀ █▀█ █   █ ████
████ █▄▄▄█ █▀██▀▀ ▄▄██ █▄▄▄█ ████
████▄▄▄▄▄▄▄█▄▀▄█ █ ▀ █▄▄▄▄▄▄▄████
████▄ ▀█▄▄▄██▀▀▄▀▄   ██▄▀ ▄ ▄████
████▄█▀█▄█▄▀██▀ ▄ ▄▄█▄▄ ▄▄ ▀█████
████ ▀█▄▄█▄▄▀█▄█▄ ▀▀▀▄▄█▀▄▄ ▄████
██████ ▄▄ ▄▀ ▄▄█▀█▀▄▀▄   ▄ ▀█████
████▄▄▄▄▄▄▄▄▀▄ ▄▀▄▄█ ▄▄▄ ▄▄██████
████ ▄▄▄▄▄ █▀▀▄ ▄ ▄█ █▄█ ▀▀█▀████
████ █   █ █▄█▀█▄ ▀█    ▄▄ ▀ ████
████ █▄▄▄█ █▀▄▄█▀█▀▀█  ▀▀ ▀ █████
████▄▄▄▄▄▄▄█▄▄▄▄█▄▄██▄▄███▄▄▄████
█████████████████████████████████
█████████████████████████████████
  • -h display this message.
  • –help display the usage of long options.
  • -o FILENAME write image to FILENAME. If '-' is specified, the result will be output to standard output. If -S is given, structured symbols are written to FILENAME-01.png, FILENAME-02.png, … (suffix is removed from FILENAME, if specified)
  • -s NUMBER specify module size in dots (pixels). (default=3)
  • -l {LMQH} specify error correction level from L (lowest) to H (highest). (default=L)
  • -v NUMBER specify the version of the symbol. (default=auto)
  • -m NUMBER specify the width of the margins. (default=4 (2 for Micro))
  • -d NUMBER specify the DPI of the generated PNG. (default=72)
  • -t {PNG,EPS,SVG,ANSI,ANSI256,ASCII,ASCIIi,UTF8,ANSIUTF8} specify the type of the generated image. (default=PNG)
  • -S make structured symbols. Version must be specified.
  • -k assume that the input text contains kanji (shift-jis).
  • -c encode lower-case alphabet characters in 8-bit mode. (default)
  • -i ignore case distinctions and use only upper-case characters.
  • -8 encode entire data in 8-bit mode. -k, -c and -i will be ignored.
  • -M encode in a Micro QR Code.
  • –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 in PNG and SVG.
  • -V display the version number and copyrights of the qrencode.
  • [STRING] input data. If it is not specified, data will be taken from standard input.

Avec un fichier

qrencode -o sortie.png -t PNG < fichier.txt

ou

cat fichier.txt | qrencode -o sortie.png -t PNG
it/linux-utilitaires/qrencode.txt · Dernière modification : 11 Mar 2022 :: 13:19 de CgX