feat: compress images before sending
This commit is contained in:
parent
72833f6f16
commit
664346e8a9
9 changed files with 241 additions and 15 deletions
|
|
@ -0,0 +1,9 @@
|
|||
package com.simplemobiletools.smsmessenger.extensions
|
||||
|
||||
import android.graphics.Bitmap
|
||||
|
||||
fun Bitmap.CompressFormat.extension() = when (this) {
|
||||
Bitmap.CompressFormat.PNG -> "png"
|
||||
Bitmap.CompressFormat.WEBP -> "webp"
|
||||
else -> "jpg"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue