fluttercandies / flutter_image_compress

flutter image compress
MIT License
632 stars 215 forks source link

Error: UnimplementedError UnsupportedFlutterImageCompress.compressWithFile #303

Open cembag opened 3 months ago

cembag commented 3 months ago

I'm getting an error when using the CompressWithFile function.

compressedImage = await FlutterImageCompress.compressWithFile(
  file.path,
  minWidth: targetSize.width.toInt(),
  minHeight: targetSize.height.toInt(),
  quality: quality,
  format: CompressFormat.jpeg,
);
Screenshot 2024-05-12 at 17 01 10
zirg41 commented 2 months ago

same issue

ea-jobvalley commented 1 month ago

I had the same error after I tried to use compute(). After removing it the error was gone and it worked again.

alexdieudonne commented 1 month ago

To solve the error you just have to

I figured out after one hour...