Closed jiaohu closed 4 years ago
The padding is due to the quiet zone around the QRCode. It would be great to be able to remove it.
Picture cropping almost 75% is ok when width greater than 300px.
` x0 := int(float32(size) * 0.125) y0 := x0
x1 := int(float32(size) * 0.875)
y1 := x1
if rgbImg, ok := img.(*image.Paletted); ok {
subImg := rgbImg.SubImage(image.Rect(x0, y0, x1, y1)).(*image.Paletted)
}
`
This has been fixed in https://github.com/skip2/go-qrcode/pull/24 . Borders are now made the minimum size possible. There's also now an option to disable borders entirely too.
my code
then i get the answer like this
the white spacing is widely