Commit 046b7942 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Increases the compress quality value.

parent b295c09f
...@@ -327,7 +327,7 @@ class ChatRoomPresenter @Inject constructor( ...@@ -327,7 +327,7 @@ class ChatRoomPresenter @Inject constructor(
val byteArrayOutputStream = ByteArrayOutputStream() val byteArrayOutputStream = ByteArrayOutputStream()
// TODO: Add an option the the app to the user be able to select the quality of the compressed image // TODO: Add an option the the app to the user be able to select the quality of the compressed image
val isCompressed = val isCompressed =
it.compress(it.getCompressFormat(mimeType), 50, byteArrayOutputStream) it.compress(it.getCompressFormat(mimeType), 70, byteArrayOutputStream)
if (isCompressed) { if (isCompressed) {
inputStream = ByteArrayInputStream(byteArrayOutputStream.toByteArray()) inputStream = ByteArrayInputStream(byteArrayOutputStream.toByteArray())
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment