Skip to main content

Generate QRCode Image

Project description

qrimg

Generate QRCode Image

Install

    pip install qrimg

Usage

Help Information

C:\Workspace\qrimg>qrimg --help
Usage: qrimg.py [OPTIONS] MESSAGE

Options:
  -o, --output TEXT               Output file name.  [required]
  -v, --version INTEGER           An integer from 1 to 40 that controls the
                                  size of the QR Code. The smallest, version
                                  1, is a 21x21 matrix. Default to None, means
                                  making the code to determine the size
                                  automatically.
  -c, --error-correction [7|15|25|30]
                                  controls the error correction used for the
                                  QR Code. Default to 30.
  -s, --box-size INTEGER          controls how many pixels each 'box' of the
                                  QR code is. Default to 10.
  -b, --border INTEGER            controls how many boxes thick the border
                                  should be (the default is 4, which is the
                                  minimum according to the specs).
  -f, --fill-color TEXT           Named color or #RGB color accepted. Default
                                  to named color 'black'.
  -b, --back-color TEXT           Named color or #RGB color accepted. Default
                                  to named color 'white'.
  --help                          Show this message and exit.

Example 1

Use qrimg command generate an image contain information "Hello world".

qrimg -o hello.png "Hello world"

Example 2

Use qrimg command generate an image contain a url.

qrimg -o site.png http://www.example.com

Example 3

Use qrimg command generate a blue colored image.

qrimg -o site.png -f blue http://www.example.com

Example 3

Use RGB color.

qrimg -o site.png -f #ff00cc http://www.example.com

Bug report

Please report any issues at https://github.com/zencore-cn/zencore-issues.

Releases

v0.2.0 2020/06/29

  • Add controller parameters in generating.

v0.1.0 2019/05/25

  • First release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qrimg-0.2.0.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file qrimg-0.2.0.tar.gz.

File metadata

  • Download URL: qrimg-0.2.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8

File hashes

Hashes for qrimg-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f09523f0a9465a6b743450ca566892db67569a1e54ad11258ec3cf58ec3db3a5
MD5 05ba3234ab0bd9fc568ea0ff37d49247
BLAKE2b-256 dfce7372e740fdbebfbb76567320dad0fc45c025d8f3e407d99cd01abc169c28

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page