Linux下二维码生成工具:QRencode
作者:互联网
1、qrencode的使用
1.1 语法格式:Usage: qrencode [OPTION]… [STRING]
- OPTIONS:
-o:输出的二维码文件名。如test.png。需要以.png结尾。-表示输出到控制台。
-s:指定图片大小。默认为3个像素。
-t:指定产生的图片类型。默认为PNG。可以是PNG/ANSI/ANSI256/ASCIIi/UTF8等。如果需要输出到控制台,可以用ANSI、ANSI256等
- STRING:可以是text、url等
1.2 举例
- 根据URL生成二维码图片
[root@cheerful-bounty-2 ~]# qrencode -o jujintianxia.png 'https://www.jujintianxia.com'
- 从标准输入产生二维码
[root@cheerful-bounty-2 ~]# qrencode -o - -t ANSI "https://www.jujintianxia.com"
原文链接:https://blog.csdn.net/weixin_36070915/article/details/102636970
标签:qrencode,jujintianxia,ANSI,二维码,QRencode,https,Linux,png 来源: https://blog.csdn.net/qq_35091353/article/details/114413357