Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
mobile_scanner
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Bảo Huy
2023-06-21 17:17:21 +0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
99bd7bd73ec9f6e85dd4d8fbc76a025c92664f3d
99bd7bd7
1 parent
0dbce201
fix(ScanImage): crash when try to rotate image
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
android/src/main/kotlin/dev/steenbakker/mobile_scanner/MobileScanner.kt
android/src/main/kotlin/dev/steenbakker/mobile_scanner/MobileScanner.kt
View file @
99bd7bd
...
...
@@ -97,7 +97,7 @@ class MobileScanner(
imageFormat.yuvToRgb(mediaImage, bitmap)
val bmResult = rotateBitmap(bitmap, camera
!!.cameraInfo.sensorRotationDegrees.toFloat()
)
val bmResult = rotateBitmap(bitmap, camera
?.cameraInfo?.sensorRotationDegrees?.toFloat() ?: 90f
)
val stream = ByteArrayOutputStream()
bmResult.compress(Bitmap.CompressFormat.PNG, 100, stream)
...
...
Please
register
or
login
to post a comment