ImageProcess constructor

ImageProcess(
  1. Uint8List imageBytes, {
  2. required int encodingQuality,
  3. String? workerPath,
  4. required OutputImageFormat outputImageFormat,
})

Implementation

ImageProcess(this.imageBytes,
    {required this.encodingQuality,
    String? workerPath,
    required this.outputImageFormat}) {
  worker = html.Worker(workerPath ?? 'worker.js');
}