compress static method

Future<MediaFile> compress(
  1. MediaFile source, {
  2. int quality = 85,
  3. int? maxWidth,
  4. int? maxHeight,
  5. 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;
}