compress Image To Jpg
suspend fun LoadedFileBase64.compressImageToJpg(maxBytes: Long): LoadedFileBase64
Content copied to clipboard
Tries to compress the given file to a jpg.
The compression is done when:
The file is a supported image type
The file is bigger then the desired maxBytes