Questions tagged [flutter-image-compress]

3 questions
2
votes
1 answer

Flutter Image Picked from Gallery has Reduced Size - How to Maintain Original Size?

I am facing an issue where the size of the picked image in the app is significantly smaller than the original image in the phone's gallery. Original image 14.5 MB but after picking it, its 324 KB without any quality setting. In Document in my…
0
votes
1 answer

E/flutter (21267): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Instance of 'CompressError'

I'm trying to compress a picture with Flutter and know the original and compressed sizes. But I am getting an error. Kindly look at the compressImage() function: Future _compressImage() async { if (_image == null) { return; } …
0
votes
0 answers

Compress image in python3 just like flutter_image_compress uses

I use flutter_image_compress to first compress an image then base64 encode and post to s3. I am able to decode the image in python using the below python code: from PIL import Image import base64 import io msg =…
Tampa
  • 75,446
  • 119
  • 278
  • 425