getResizedImage static method
Implementation
static Future<String> getResizedImage(File imageFile) async {
Uint8List imageBytes = await imageFile.readAsBytes();
Image? thumbnail = decodeImage(imageBytes);
if (thumbnail == null) {
return "";
}
thumbnail = copyResize(thumbnail, width: 200, height: 200);
List<int> resizedImage = encodePng(thumbnail);
return Base64Encoder().convert(resizedImage);
}