compressImageBytes method

Future<ImageBytesResult> compressImageBytes(
  1. Uint8List source,
  2. ImageCompressConfig config
)

Compress bytes in memory. Images only — a video would mean copying tens of megabytes across the platform channel in one message.

Implementation

Future<ImageBytesResult> compressImageBytes(
  Uint8List source,
  ImageCompressConfig config,
) => throw UnimplementedError(
  'compressImageBytes() has not been implemented.',
);