compressAssetImage static method
From asset
to Uint8List
Implementation
static Future<typed_data.Uint8List?> compressAssetImage(
String assetName, {
int minWidth = 1920,
int minHeight = 1080,
int quality = 95,
int rotate = 0,
bool autoCorrectionAngle = true,
CompressFormat format = CompressFormat.jpeg,
bool keepExif = false,
}) async {
return _platform.compressAssetImage(
assetName,
minWidth: minWidth,
minHeight: minHeight,
quality: quality,
rotate: rotate,
autoCorrectionAngle: autoCorrectionAngle,
format: format,
keepExif: keepExif,
);
}