yeqown / go-qrcode

To help gophers generate QR Codes with customized styles, such as color, block size, block shape, and icon.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

制作出来的二维码图片比较大

xgfone opened this issue · comments

commented

使用 python-qrcode 制作出来的二维码图片只有 702 个字节,但使用本项目 go-qrcode 制作出来的二维码图片却有 13298 个字节,大小相差了将近 19 倍。有什么办法缩小二维码尺寸大小吗?

说明: 使用相同的文本,其它配置几乎一样(或者都按默认配置)。

commented

There is a similar issue #69, which has been fixed.

commented

If you really care about the generated size of the QR Code image, try this writer(https://github.com/yeqown/go-qrcode/tree/main/writer/compressed) instead. Of course, it would lose some features(colorful)