compress static method
Future<MediaFile>
compress(
- MediaFile source, {
- int quality = 85,
- int? maxWidth,
- int? maxHeight,
- CompressFormat format = CompressFormat.jpeg,
Returns source unchanged — image compression is not available on this
platform.
Implementation
static Future<MediaFile> compress(
MediaFile source, {
int quality = 85,
int? maxWidth,
int? maxHeight,
CompressFormat format = CompressFormat.jpeg,
}) async {
debugPrint(
'[Primekit] ImageCompressor: not supported on this platform '
'— returning original file unchanged.',
);
return source;
}