I am working with an APIs which is throwing error when image is greater than 5MB. Now I want to compress the size of image if image size is greater than 5MB then it should compress that to 5MB. Is there any way to do that other than mentioned method
ImagePicker.pickImage(source: picker.ImageSource.gallery,imageQuality: 50)
or how exactly imageQuality works If you know the exact behavior then please mention that also.
Thanks!