php-qrcode-detector-decoder icon indicating copy to clipboard operation
php-qrcode-detector-decoder copied to clipboard

File Size

Open findigital opened this issue 8 years ago • 1 comments

We have implemented this library and we realized that the issues we were having with not being able to read the QR code are related to the size of the images uploaded.

Since we are accessing the device camera we have limitations on reducing the file size easily. What's the best way to reduce the files sizes before decoding the image.

findigital avatar Nov 14 '16 20:11 findigital

I realize this issue is from 2016, but I've just run into it myself. I suggest, if you have imagick installed on your server, using functions from their library to decrease the image size before handing it to zxing. I think more likely than not the issue is with your server configuration rather than the barcode reader library itself, but either way pre-processing the image is a workaround.

benergize avatar Feb 20 '20 17:02 benergize