🛠️ Remove image compression
This commit is contained in:
parent
6999d87721
commit
9866641367
1 changed files with 1 additions and 15 deletions
|
|
@ -208,20 +208,6 @@ class DocumentParser @Inject constructor(
|
|||
|
||||
|
||||
val uncompressedBitmap = getBitmapFromInputStream() ?: return null
|
||||
return when (uncompressedBitmap.byteCount) {
|
||||
in 0..1048576 /* 0 - 1MB */ -> {
|
||||
uncompressedBitmap
|
||||
}
|
||||
|
||||
in 1048576..2097152 /* 1MB - 2MB */ -> {
|
||||
uncompressedBitmap.recycle()
|
||||
getBitmapFromInputStream(2)
|
||||
}
|
||||
|
||||
else -> /* >=2MB */ {
|
||||
uncompressedBitmap.recycle()
|
||||
getBitmapFromInputStream(3)
|
||||
}
|
||||
}
|
||||
return uncompressedBitmap
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue