Package de. peekandpoke. kraft. addons. files
Types
Link copied to clipboard
data class LoadedFileBase64( val file: File, val dataUrl: String?, val mimeType: String?, val dataBase64: String?)
Content copied to clipboard
Functions
Link copied to clipboard
suspend fun LoadedFileBase64.compressImageToJpg(maxBytes: Long): LoadedFileBase64
Content copied to clipboard
Tries to compress the given file to a jpg.
Link copied to clipboard
Returns true when the given file is an image that can be converted
Link copied to clipboard