compress
Image
suspend fun compressImage(toCompress: File, format: Bitmap.CompressFormat? = null): File
Content copied to clipboard
method to compress image from File
Return
compressed File
Parameters
toCompress
File to compress
format
Bitmap.CompressFormat configruation for the compression