Open lnds opened 6 months ago
It seems that there is not enough white space on both sides. I got the result by adding white space.
img, _,_ := image.Decode(file)
img2 := image.NewRGBA(image.Rect(0, 0, 3000, 2500))
draw.Draw(img2, img2.Bounds(), image.White, image.Pt(0, 0), draw.Over)
draw.Draw(img2, image.Rect(250, 0, 2750, 2500), img, image.Pt(0, 0), draw.Over)
bmp, err := gozxing.NewBinaryBitmapFromImage(img2)
When trying to decode this image I get NotFoundException.
Here's my code: