compressImage

suspend fun compressImage(toCompress: File, format: Bitmap.CompressFormat? = null): File

Function to compress File image size

Return

compressed File

Parameters

toCompress

File to compress

format

Bitmap.CompressFormat configuration for the compression