For parsing and encoding of QR-codes (issued in the form of a square matrix code, consisting of rectangular areas and able to contain a few kilobytes of data) on Linux is convenient to use package libdmtx-utils.
to control the output options can be used: "-d N" - specifies the size of the module in pixels; "-s NxM" - specifies the size of the rectangles encoding, candle lanterns for example, "-s 10x10" "-m N" - specifies the indentation from the borders of the image in pixels; "-e Type" - specifies candle lanterns the type of encoding data: b = optimization, quality-oriented; f = optimization focused on speed; a = ASCII (default) c = C40 (numbers and uppercase letters) t = Text (numbers and lowercase) x = X12 ANSI X12 EDI e = EDIFACT (ASCII characters with codes 32-94) 8 = Base 256 ( all eight-bit characters) "-f format" - sets the image format to save (list of supported formats can be viewed via the option "-l")
To encode a QR-Code in Linux, you can use the utility qrencode (http://fukuchi.org/works/qrencode/index.en.html):
No comments:
Post a Comment