compressFile method

  1. @override
Future<Uint8List> compressFile(
  1. String path,
  2. CompressOptions options
)
override

Compresses an image file from the filesystem.

Takes a file path and applies compression according to options.

Returns compressed image data as Uint8List.

Throws ImageCompressException if the file is not found or compression fails.

Implementation

@override
Future<Uint8List> compressFile(String path, CompressOptions options) async {
  throw ImageCompressException(
    'File compression is not supported on web platform. Use compress() with Uint8List data instead.',
    'UNSUPPORTED_OPERATION',
  );
}