Qrencode:linux command line to generate two-dimensional code image

Source: Internet
Author: User

Original link: http://wowubuntu.com/qrencode.html

# Author: Riku//This article uses cc BY-NC-SA 2.5 license, reprint please indicate this article link.

For the QR code everyone should be not unfamiliar, the English name 2-dimensional bar code or QR code, is a graphic information technology, the most common is applied to mobile phone applications. Users through the mobile phone camera scan two-dimensional code or enter the QR code below the number, keywords can achieve fast mobile internet access, quick and easy to browse the Web, download graphics, music, video and so on.

On Ubuntu/linux, there's a command-line tool called Qrencode that can easily help us generate QR codes.

Installation

sudo apt-get install Qrencode

Use

Qrencode-o [Filename.png] ' [text/url/information to encode] '

For example, to generate the two-dimensional code of the site

Qrencode-o wowubuntu.png ' http://wowubuntu.com '

The output graph is as follows, if you have a QR code recognition software installed on your phone, you can use your phone to shoot and identify.

If you want to customize the size, add the-s parameter, such as-s 6 to indicate the size of the 6x6 square image table, as follows.

Qrencode-o ~/desktop/google.png-s 6 ' http://wowubuntu.com '

In addition, you can use more other parameters, detailed usage please man qrencode.

-Message Source

Update: The QR code is recognized at the command line:

# Install Libdecodeqr-examples

Apt-get Install Libdecodeqr-examples

Use

Libdecodeqr-simpletest < QR code images >

such as the identification of the previous generation of the QR code image

Libdecodeqr-simpletest Wowubuntu.png

Output results

Libdecodeqr-simpletest Wowubuntu.png
LIBDECODEQR version 0.9.3 ($Rev: 42 $)
status=2000

Http://wowubuntu.com

Hits any key to end.

Qrencode:linux command line to generate two-dimensional code image

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.