react-native-rectangle-doc-scanner 3.137.0 → 3.138.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -125,7 +125,8 @@ object ImageProcessor {
125
125
  val dstMat = Mat()
126
126
  srcMat.convertTo(dstMat, -1, contrast.toDouble(), brightness * 255.0)
127
127
 
128
- val resultBitmap = Bitmap.createBitmap(bitmap.width, bitmap.height, bitmap.config)
128
+ val safeConfig = bitmap.config ?: Bitmap.Config.ARGB_8888
129
+ val resultBitmap = Bitmap.createBitmap(bitmap.width, bitmap.height, safeConfig)
129
130
  Utils.matToBitmap(dstMat, resultBitmap)
130
131
 
131
132
  srcMat.release()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "3.137.0",
3
+ "version": "3.138.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",