Hello,
I’ve been using zxing for generating QR Codes both in my web application and android apps. There’s no issue in the data encoding part. However, what I’ve observed is that in either case there’s a thick padding/border around the QR code image. This is white in colour, so it’s not much of an issue if I’m using a light background. But with a coloured background, this becomes quite a problem. I’m attaching a sample QR image to give a clearer picture of what I mean. I could try and programmatically crop the image, but I’m not sure what can be a consistent %-age value by which I can crop the edges, so that irrespective of the size of the image I get a proper, cropped QR image.
The code I use to generate the QR image is –
BitMatrix matrix = writer.encode(str, com.google.zxing.BarcodeFormat.QR_CODE,
QR_WIDTH, QR_HEIGHT);
After that, in case of web applications, I write the matrix to a stream, and in case of Android I re-encode it into a Bitmap.
Last but certainly not the least, I believe you guys [zxing team] are doing an excellent job at making such a core technology available to so many people.
Thank you so very much!
anirvan