title: Can't read QR Code image with ZXing library while website/other app can
body: <p>I'm using Zxing library (I use the one from journeyapps) to scan a QR Code from an image. It works pretty well but I have found some images that I can't decode though the web site <a href="https://zxing.org/w/decode.jspx" rel="nofollow noreferrer">https://zxing.org/w/decode.jspx</a> or another app using ZXing can decode it. So I'm wondering what I do wrong or what am I missing ...</p>
  <p>If someone have a clue that would be great.</p>
  <p>This image: <a href="https://ibb.co/xHDR39P" rel="nofollow noreferrer">https://ibb.co/xHDR39P</a></p>
  <ul>
  <li>The other app decode it</li>
  <li>the website can't decode</li>
  <li>the app Barcode Scanner+ can't decode</li>
  <li>my app can't decode</li>
  </ul>
  <p>This image: <a href="https://ibb.co/zfMN0K3" rel="nofollow noreferrer">https://ibb.co/zfMN0K3</a> (cropped from the first one)</p>
  <ul>
  <li>The other app decode it</li>
  <li>the website decode it</li>
  <li>the app Barcode Scanner+ can't decode</li>
  <li>my app can't decode</li>
  </ul>
  <p>This image: <a href="https://ibb.co/z75n3wm" rel="nofollow noreferrer">https://ibb.co/z75n3wm</a> (cropped from the second one)</p>
  <ul>
  <li>The other app decode it</li>
  <li>the website decode it</li>
  <li>the app Barcode Scanner+ decode it</li>
  <li>my app can decode</li>
  </ul>
  <p>Here is the code I use to decode image. I tried with TRY_HARDER hint, with multiple binarizer and even rotating it..</p>
  <pre><code>fun scanQRImage(bMap: Bitmap, context: Context, angle: Float = 0f): IntentResult? {
          val intArray = IntArray(bMap.width * bMap.height)
          //copy pixel data from the Bitmap into the 'intArray' array
          bMap.getPixels(intArray, 0, bMap.width, 0, 0, bMap.width, bMap.height)
          val source: LuminanceSource = RGBLuminanceSource(bMap.width, bMap.height, intArray)
          val hints: MutableMap&lt;DecodeHintType, Any&gt; = Hashtable()
          hints[DecodeHintType.TRY_HARDER] = java.lang.Boolean.TRUE
          val bitmap = BinaryBitmap(HybridBinarizer(source))
          val reader: Reader = MultiFormatReader()
          return try {
              val result: Result = reader.decode(bitmap, hints)
              generateResultIntent(BarcodeResult(result, null), context, false)
          } catch (e: Exception) {
              val newAngle = angle + 90
              if (newAngle &lt; 400)
                  scanQRImage(rotateBitmap(bMap, angle), context, newAngle)
              else
                  null
          }
      }
  </code></pre>