compress Image

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

method to compress image from File

Return

compressed File

Parameters

toCompress

File to compress

format

Bitmap.CompressFormat configruation for the compression

Sources

Link copied to clipboard