Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
1
votes
2
answers
720
views
How to generate full-page QR code from command line?
I'd like to generate a full-page QR code from the command line. The following command sort of accomplishes this: qrencode -o- https://example.net | convert png:- -gravity center -units pixelsperinch -density 300 -resize 2551x3295 -extent 2551x3295 qrcode.pdf Unfortunately, the resulting QR code is q...
I'd like to generate a full-page QR code from the command line. The following command sort of accomplishes this:
qrencode -o- https://example.net | convert png:- -gravity center -units pixelsperinch -density 300 -resize 2551x3295 -extent 2551x3295 qrcode.pdf
Unfortunately, the resulting QR code is quite blurry, as though imagemagick is doing some sort of unwanted antialiasing.
Is there a way to make the code completely crisp, or just a better/simpler approach to generating a PDF file with a full-page QR code?
user3188445
(5539 rep)
Apr 3, 2024, 06:13 PM
• Last activity: Aug 6, 2025, 02:43 PM
1
votes
0
answers
324
views
Decode and identically re-encode QR code
It happens to me regularly that I get a low quality raster image of a QR code and I need it in better quality. This works in principle: zbarimg --quiet --raw qr-bad.png | qrencode -t SVG -o qr-good.svg But sometimes it's important to keep the QR code exactly the same. Is there a way to detect the pa...
It happens to me regularly that I get a low quality raster image of a QR code and I need it in better quality.
This works in principle:
zbarimg --quiet --raw qr-bad.png | qrencode -t SVG -o qr-good.svg
But sometimes it's important to keep the QR code exactly the same. Is there a way to detect the parameters of the original and keep them the same? I'd like the result to have exactly the same pattern of white and black blocks.
Nobody
(559 rep)
Apr 6, 2022, 09:20 PM
3
votes
3
answers
1321
views
How can I generate QR Codes with subtitles?
I need to generate several thousand qr codes of simple IDs (1234, 1235, 1236, ...) and want to be able to also make them human readable. `qrencode` is a really cool tool to generate qr-codes, BUT no way to add a subtitle there. Any ideas?
I need to generate several thousand qr codes of simple IDs (1234, 1235, 1236, ...) and want to be able to also make them human readable.
qrencode
is a really cool tool to generate qr-codes, BUT no way to add a subtitle there.
Any ideas?
Frischling
(173 rep)
Jun 18, 2021, 11:16 AM
• Last activity: Jun 20, 2021, 06:13 PM
6
votes
1
answers
9859
views
Generate a QR-code to log into Wireless (wifi) with WPA encryption
I installed a command-line QR-code generator: apt install qrencode I used the following format, so the QR scanner knows what to do with the content: WIFI:T:WPA;S: ;P: ;; generating the QR image file then works like this: qrencode "WIFI:T:WPA;S:My_Network;P:My_very_secure_Password;;" -o wifi_login.pn...
I installed a command-line QR-code generator:
apt install qrencode
I used the following format, so the QR scanner knows what to do with the content:
WIFI:T:WPA;S:;P:;;
generating the QR image file then works like this:
qrencode "WIFI:T:WPA;S:My_Network;P:My_very_secure_Password;;" -o wifi_login.png
this generates an image file
wifi_login.png
with the QR encoded string.
while the option -o FILENAME
or --output=FILENAME
makes qrencode
write the generated image to this FILENAME
. -
can be used to print to standard output.
The whole procedure works pretty well with MAC devices, but not with Android.
**Is there anything wrong with the string, making it not Android-compatible?**
nath
(6094 rep)
Jan 12, 2021, 01:36 PM
• Last activity: Jan 14, 2021, 10:25 PM
9
votes
6
answers
12612
views
Generating QR code of very big file?
I want to generate a [QR code][1] of my 4096-bit armored [GPG][2] private key. The key is so big, the program `qrencode` seems to fail because of its size. $ gpg --export-secret-keys --armor > ~/private.key $ ./qrencode -o test.png Failed to encode the input data: Numerical result out of range How c...
I want to generate a QR code of my 4096-bit armored GPG private key. The key is so big, the program
qrencode
seems to fail because of its size.
$ gpg --export-secret-keys --armor > ~/private.key
$ ./qrencode -o test.png Failed to encode the input data: Numerical result out of range
How can I make that happen? Are there alternative programs to qrencode which can handle a very big GPG key? I want to print it on paper as this security.SE question suggested.
---
The comments of @geruetzel and @ cuonglm are addressing this version of my question .
uuu
(762 rep)
Apr 30, 2016, 03:50 PM
• Last activity: Jan 12, 2021, 03:55 PM
Showing page 1 of 5 total questions