Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 546 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 546 Bytes

with-halftone

🚧 Notice that could not use another shape except for the rectangle since the gap between qr blocks could mislead the recognizer.

func main() {
	qrc, err := qrcode.New("https://github.com/yeqown/go-qrcode")
	if err != nil {
		panic(err)
	}

	w0, err := standard.New("./repository_qrcode.png",
		standard.WithHalftone("./test.jpeg"),
		standard.WithQRWidth(21),
	)
	handleErr(err)
	err = qrc.Save(w0)
	handleErr(err)
}

input image

output image